Commit Graph

1 Commits

Author SHA1 Message Date
ktkovachev
c7048b8b19
Solve 1700. Number of Students Unable to Eat Lunch
Using a deque to improve the speed of removing from the left side of the queue and rotating students to the back of the queue (from O(n) to O(1) amortized).
2024-04-08 16:04:43 +01:00