Sponsored
Use these hints if you're stuck. Try solving on your own first.
How can you compute the number of subarrays with a sum less than a given value?
Can we use binary search to help find the answer?
Solve with full IDE support and test cases