Available question text
For each size-k sliding window, return the x-th smallest negative number (or 0 if the window has fewer than x negatives), requiring a sliding-window order-statistics over negative values. Because nums values lie in a small fixed range (−50..50), this can be done efficiently by maintaining counts/frequencies as the window moves.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2653. Sliding Subarray Beauty
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source