Skip to content

Commit

Permalink
Add semicolon in test
Browse files Browse the repository at this point in the history
  • Loading branch information
gyt95 committed Dec 16, 2022
1 parent dc985cb commit 19d7356
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ function twoSumHashTable(nums, target) {
/* Driver Code */
// 方法一
const nums = [2, 7, 11, 15], target = 9;
let res = twoSumBruteForce(nums, target)
console.log("方法一 res = ", res)

let res = twoSumBruteForce(nums, target);
console.log("方法一 res = ", res);

// 方法二
res = twoSumHashTable(nums, target)
console.log("方法二 res = ", res)
res = twoSumHashTable(nums, target);
console.log("方法二 res = ", res);

0 comments on commit 19d7356

Please sign in to comment.