Subarray Sum Equals K
CodingPhone ScreenSoftware EngineerReported Jan, 2026
Examples
Example 1:
Input: nums = [1,1,1], k = 2
Output: 2
Explanation:
Example 2:
Input: nums = [1,2,3], k = 3
Output: 2
Explanation:
Example 3:
Input: nums = [1,-1,0], k = 0
Output: 3
Explanation: