From 94cba488ef1a7d974ac9d176e08c030a7867bb78 Mon Sep 17 00:00:00 2001 From: krahets Date: Mon, 6 Feb 2023 04:34:01 +0800 Subject: [PATCH] Fix leetcode_two_sum.py --- .../chapter_computational_complexity/leetcode_two_sum.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/codes/python/chapter_computational_complexity/leetcode_two_sum.py b/codes/python/chapter_computational_complexity/leetcode_two_sum.py index 01c3cbcf1..06ca397c3 100644 --- a/codes/python/chapter_computational_complexity/leetcode_two_sum.py +++ b/codes/python/chapter_computational_complexity/leetcode_two_sum.py @@ -34,13 +34,13 @@ class SolutionHashMap: """ Driver Code """ if __name__ == '__main__': # ======= Test Case ======= - nums = [ 2,7,11,15 ]; - target = 9; + nums = [2,7,11,15] + target = 9 # ====== Driver Code ====== # 方法一 - res = SolutionBruteForce().twoSum(nums, target); + res = SolutionBruteForce().twoSum(nums, target) print("方法一 res =", res) # 方法二 - res = SolutionHashMap().twoSum(nums, target); + res = SolutionHashMap().twoSum(nums, target) print("方法二 res =", res)