Question DSA-TP-0004
EasyWhat is a sliding window?
- A.
A sorted subarray
- B.
A recursive call
- C.
Show answer and explanation
Answer: C
Adding the new element and removing the old one avoids recomputing each window from scratch.
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 a sliding window?
A sorted subarray
A recursive call
Answer: C
Adding the new element and removing the old one avoids recomputing each window from scratch.
A range of elements that moves across the array, updated incrementally
A GUI window