CodeMosa

Master LeetCode Patterns

Back
Monotonic Deque
Question 1 of 128% Complete
Hard
Why use a deque instead of a stack for sliding window maximum?
Need a hint?
Think about removing elements from both ends