Sliding Window — Reasoning Check

Apply the module invariants, traces, and boundary conditions.


Get every question correct to pass this checkpoint. You can review feedback, revise your answers, and submit again.

1. For positive values [2,1,5,2,3,2] and target 8, what is the minimum qualifying subarray length? Enter one integer.
2. Apply the positive-sum shrinking template to [1,-1,5] with target 5. It records length 3, removes the first 1, then stops because the sum is 4. What went wrong?

Select one answer.

3. What is the longest substring length without repeated bytes in "dvdf"? Enter one integer.
4. Minimum Window Substring tracks formed character kinds for target "AAB". The active window contains AAA B. What happens when one A leaves?

Select one answer.

5. For text "zcatdogcat" and words ["cat","dog"], how many concatenation start positions match? Enter one integer.
6. Character Replacement keeps a historical maxFreq while left moves forward. Which change would make the expression windowLength-maxFreq certify the CURRENT window as valid?

Select one answer.

Join Discord