From charlesreid1

No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
A linked stack is not complicated, in concept: we simply use a linked list to implement a stack.
Because linked lists offer O(1) access to add or remove items from the front of the list, we can implement a linked stack with a minimal amount of wrapping of a linked list.
See [[Linked Lists/Python]] for linked list implementation in Python, used to implement the LinkedStack.
See [[Linked Lists/Python]] for linked list implementation in Python, used to implement the LinkedStack.


Line 5: Line 9:
=Flags=
=Flags=


{{DataStructuresFlag}}
{{StacksQueuesFlag}}
 
[[Category:Stacks]]
[[Category:Stacks]]
[[Category:Linked Lists]]
[[Category:Linked Lists]]
[[Category:Python]]
[[Category:Python]]

Latest revision as of 17:08, 9 September 2017

A linked stack is not complicated, in concept: we simply use a linked list to implement a stack.

Because linked lists offer O(1) access to add or remove items from the front of the list, we can implement a linked stack with a minimal amount of wrapping of a linked list.

See Linked Lists/Python for linked list implementation in Python, used to implement the LinkedStack.


Flags