Question DSA-QUE-0072
HardWhat is a monotonic queue used for?
- A.
Hashing
- B.
Keeping window maximums or minimums available in O(1) as the window slides
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Queues and Deques question
What is a monotonic queue used for?
Hashing
Keeping window maximums or minimums available in O(1) as the window slides
Sign up free to see the answer and a step-by-step explanation.
Finding paths
Sorting