Search
Lessons (2)
- Stacks & Queues
… queue) --- --- --- enqueue(x) join the back O(1) dequeue() leave the front O(1) peek() look at the …
- Arrays & Strings
… If you need fast adds and removes at both ends, use a queue or deque (see Stacks & Queues …
… queue) --- --- --- enqueue(x) join the back O(1) dequeue() leave the front O(1) peek() look at the …
… If you need fast adds and removes at both ends, use a queue or deque (see Stacks & Queues …