Algorithms · Data Structures
Choose one to explore step by step
Structures for storing and retrieving data
Linear
Stack
O(1) push/popA last-in, first-out structure returns the most recently added value.
Queue
O(1) enqueue/dequeueA first-in, first-out structure returns the earliest added value.
Deque
O(1) at both endsA deque supports insertion and removal at both ends.
Linked List
Insert O(1) · Search O(n)Nodes store values and references that link them in sequence.