Multiple ChoiceIntermediate 30s
Variable-Size Sliding Window
A variable-size sliding window:
Options
- 1Expands and contracts based on a condition (e.g., sum >= target)
- 2Only works correctly on arrays that are already sorted
- 3Always keeps a fixed size while scanning the whole array
- 4Requires O(n^2) time in the worst case of a full scan
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.