Back to problems

Fixed-Size Window Target Counting

Algorithm · Roblox · Medium

Counting a Target Across Fixed-Length Windows Interview context: CodingPhone, onsite software engineer and machine learning engineer; reported April 2026. Problem Overview Given an integer array, a window length k, and a target value, first identify every contiguous window of length k that includes the target. Then find the length-k window in which the target occurs most often. This has been described in reported variants as “Fixed-Size Window Interval Counting” and “Sliding…

Checking your access…