560. Subarray Sum Equals K

Given an array of integers nums and an integer k, return the total number of continuous subarrays whose sum equals to k.
Input
[1,-1,0]
0
Output
2
Expected
3

	Correct answer is 2 but it showing expected 3. can anyone explain how 3?
Comments (3)