Update the test
This commit is contained in:
parent
b34fa3b1b1
commit
87b6026529
@ -35,10 +35,10 @@ function twoSumHashTable(nums, target) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Driver Code */
|
/* Driver Code */
|
||||||
let nums = [2, 7, 11, 15]
|
let nums = [2, 7, 11, 15], target = 9;
|
||||||
twoSumBruteForce(nums)
|
twoSumBruteForce(nums, target)
|
||||||
console.log("使用暴力枚举后得到结果:", nums)
|
console.log("使用暴力枚举后得到结果:", nums)
|
||||||
|
|
||||||
let nums1 = [2, 7, 11, 15]
|
let nums1 = [2, 7, 11, 15], target1 = 9;
|
||||||
twoSumHashTable(nums1)
|
twoSumHashTable(nums1, target1)
|
||||||
console.log("使用辅助哈希表后得到结果", nums1)
|
console.log("使用辅助哈希表后得到结果", nums1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user