Ezvor

1918. Kth Smallest Subarray Sum

MediumArray Preparing judge… LeetCode
ArrayBinary SearchSliding Window

Hints

Hint 1
How can you compute the number of subarrays with a sum less than a given value?
Hint 2
Can we use binary search to help find the answer?