01
Stacks and queues restrict how items enter and leave a collection.
supportedStacks and queues restrict how items enter and leave a collection. Stacks support function calls, undo, expression parsing, depth-first search, and backtracking.
Learn this concept
Knowledge map
Evidence first
Stacks and queues restrict how items enter and leave a collection.
supportedA stack changes one logical end of the sequence, while a queue adds at one end and removes from the other.
supportedTracing operations shows deterministic ordering: pushing A,B,C then popping yields C,B,A, while enqueueing A,B,C then dequeuing yields A,B,C.