Coldest Stretch — Solution & Editorial
Slide a fixed window keeping the running sum and remember the best (strictly smaller) start.
Complexity: O(N)
Slide a fixed window keeping the running sum and remember the best (strictly smaller) start.
Complexity: O(N)