We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a58339 commit 3a595a9Copy full SHA for 3a595a9
two-sum/yuhyeon99.js
@@ -14,7 +14,7 @@ var twoSum = function(nums, target) {
14
if(!numsMap.has(num)) numsMap.set(num, []);
15
numsMap.get(num).push(i);
16
});
17
-
+
18
for(let i = 0; i < nums.length; i ++) {
19
for(let j = i + 1; j < nums.length; j ++) {
20
if(nums[i] + nums[j] === target) {
@@ -32,4 +32,4 @@ var twoSum = function(nums, target) {
32
33
function hasMultipleEntries(arr) {
34
return arr.length >= 2;
35
-}
+}
0 commit comments