Problems > Windows Reaching the Target > Editorial

Windows Reaching the Target — Solution & Editorial

Back to the Problem

Slide the fixed window once, testing the running sum against T.

Complexity: O(N)