Skip to content

Commit

Permalink
Merge pull request #2531 from NicolasLeigh/NicolasLi2-patch-1
Browse files Browse the repository at this point in the history
Update 0001.两数之和.md
  • Loading branch information
youngyangyang04 committed May 13, 2024
2 parents 8102ba5 + a68d7c9 commit 3f2d0c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions problems/0001.两数之和.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ function twoSum(nums: number[], target: number): number[] {
index = helperMap.get(target - nums[i]);
if (index !== undefined) {
resArr = [i, index];
break;
}
helperMap.set(nums[i], i);
}
Expand Down

0 comments on commit 3f2d0c4

Please sign in to comment.