Queue
Articles and practice problems tagged Queue.
Articles
Data Structures
Stacks and Queues Explained
How stacks (last in, first out) and queues (first in, first out) work, what their operations cost, and how to build both correctly in JavaScript.
· 8 min read
Problems
| Problem | Difficulty | Pattern | Time | Space | Read |
|---|---|---|---|---|---|
| Shortest Subarray with Sum at Least K | hard | Prefix Sums | O(n) | O(n) | Medium read: 8 min |
| Sliding Window Maximum | hard | Sliding Window | O(n) | O(n) | Medium read: 8 min |