Intermediate Data Structures & Algorithms
Q60 / 100

What is the sliding window technique?

Correct! Well done.

Incorrect.

The correct answer is B) Maintaining a subarray window that expands/contracts to solve range problems in O(n)

B

Correct Answer

Maintaining a subarray window that expands/contracts to solve range problems in O(n)

Explanation

Sliding window maintains a contiguous subarray and adjusts it with two pointers. Used for maximum sum subarray of size k, longest substring without repeating characters, etc.

Progress
60/100