Fundamental Algorithms8 sections · 291 units
Open in CourseQuiz: Monotonic Deque
Test your understanding
Check Your Understanding
In Sliding Window Maximum, why use a deque instead of a heap?
- A.Heap doesn't support maximum queries
- B.Deque uses less memory
- C.Deque allows removal of out-of-window elements from the front
- D.Deque allows removal of elements that are out of window and that can never be maximum