1. Add C++ codes for the chapter of

computational complexity, sorting, searching.
2. Corrected some mistakes.
3. Update README.
This commit is contained in:
Yudong Jin
2022-11-27 04:19:16 +08:00
parent f85ee36ce1
commit 431a0f6caf
37 changed files with 147 additions and 94 deletions

View File

@@ -16,9 +16,8 @@ func TestTwoSum(t *testing.T) {
// ====== Driver Code ======
// 方法一:暴力解法
res := twoSumBruteForce(nums, target)
t.Log("brute force:", res)
t.Log("方法一 res =", res)
// 方法二:哈希表
res = twoSumHashTable(nums, target)
t.Log("hash table:", res)
t.Log("方法二 res =", res)
}