Blog Posts tagged with 'stack'

Stack Data Structure in Python and C#

This article first shows how to use the List Type in Python as a Stack data structure. It then provides an example of a custom Stack Class built in Python that still leverages the List Type in Python but uses abstraction to hide the underlying storage and its non-Stack methods. The article also shows how to use the deque in Python, Stack<T> in C# from System.Collections.Generic, and how to code the Stack data structure using a link list!

Read More