mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-25 00:26:29 +08:00
Add semicolon in test
This commit is contained in:
parent
dc985cb962
commit
19d7356e8f
1 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue