Skip to content

Commit a7c58c0

Browse files
Update 0560. Subarray Sum Equals K.md
1 parent 0b47380 commit a7c58c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JS-Algo/0560. Subarray Sum Equals K.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var subarraySum = function(nums, k) {
1919
since 7 - (3+4) = 0 and we are looking
2020
for if there's a case where Sumi is 0,
2121
and there should always be a case for that.
22-
如果target是仅有的两个数的和,不提前set好[0,1]就会只输出0而不是唯一的一个
22+
2323
*/
2424
map.set(0, 1);
2525
for(let i = 0; i < nums.length; i++) {

0 commit comments

Comments
 (0)