Problem 2653 · Medium

Sliding Subarray Beauty

Count the negative values in each window by magnitude, then read off the x-th smallest negative value.

Open the interactive visualisation