Leetcode 560: Subarray Sum Equals K
The orignal question can be found here. The question is asking the number of subarrays which the sum value equals […]
The orignal question can be found here. The question is asking the number of subarrays which the sum value equals […]
The original question can be found here. The question is aksing for the largest sum of the subarray. We can
The original question can be found here. The question is asking to find the maximum number inside each sliding window(subarray).
Prefix sum is a very useful technique which can be used for some subarray questions. Let’s look at how it
The original question can be found here. This question is quite tricky. I will say best of luck to you