From 19d7356e8fba39187fb938b3042fdb32ace42a3f Mon Sep 17 00:00:00 2001 From: gyt95 Date: Fri, 16 Dec 2022 16:34:30 +0800 Subject: [PATCH] Add semicolon in test --- .../chapter_computational_complexity/leetcode_two_sum.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/codes/javascript/chapter_computational_complexity/leetcode_two_sum.js b/codes/javascript/chapter_computational_complexity/leetcode_two_sum.js index 2166a29b8..0db9cd705 100644 --- a/codes/javascript/chapter_computational_complexity/leetcode_two_sum.js +++ b/codes/javascript/chapter_computational_complexity/leetcode_two_sum.js @@ -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);