Add semicolon in test

This commit is contained in:
gyt95 2022-12-16 16:34:30 +08:00
parent dc985cb962
commit 19d7356e8f

View file

@ -34,9 +34,10 @@ function twoSumHashTable(nums, target) {
/* Driver Code */ /* Driver Code */
// 方法一 // 方法一
const nums = [2, 7, 11, 15], target = 9; 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) res = twoSumHashTable(nums, target);
console.log("方法二 res = ", res) console.log("方法二 res = ", res);