Skip to content

Commit 3a595a9

Browse files
committed
two sum solution
1 parent 6a58339 commit 3a595a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

two-sum/yuhyeon99.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var twoSum = function(nums, target) {
1414
if(!numsMap.has(num)) numsMap.set(num, []);
1515
numsMap.get(num).push(i);
1616
});
17-
17+
1818
for(let i = 0; i < nums.length; i ++) {
1919
for(let j = i + 1; j < nums.length; j ++) {
2020
if(nums[i] + nums[j] === target) {
@@ -32,4 +32,4 @@ var twoSum = function(nums, target) {
3232

3333
function hasMultipleEntries(arr) {
3434
return arr.length >= 2;
35-
}
35+
}

0 commit comments

Comments
 (0)