Skip to content

Commit

Permalink
add method call and console for output
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham0523 committed Oct 7, 2024
1 parent 7de756f commit 70dba3f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CodeBase/TwoSum.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@ function twoSum(nums, target) {
obj[n] = i; // Store the index of the current number
}
};
}
}

let numArr = [2,3,4,5,6,7]
const target = 10

console.log(twoSum(numArr, target))

0 comments on commit 70dba3f

Please sign in to comment.