Fixed-Length Windows That Contain a Target
Asked at Roblox · Coding Questions · Difficulty: Easy · Last asked May 19, 2026
You are given an integer array, a window length `k` and a target value. A window is a contiguous block of exactly `k` elements, named by the index where it starts. Find every window that contains the target at least once.
Loading the problem…