Question DSA-TP-0019
HardWhat is the time complexity of the sliding-window maximum algorithm that uses a deque?
- A.
O(n log k)
- B.
O(n × k)
- 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
Two Pointers and Sliding Window question
What is the time complexity of the sliding-window maximum algorithm that uses a deque?
O(n log k)
O(n × k)
Sign up free to see the answer and a step-by-step explanation.
O(k)
O(n)