Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit bdbcff0

Browse files
author
Khanh Do
committed
Remove unnecessary list copy
1 parent 23ef029 commit bdbcff0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

0001_two_sum.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def main():
7070

7171
assert two_sum1(nums, target) == ans
7272
assert two_sum2(nums, target) == ans
73-
assert two_sum3(list(nums), target) == ans
73+
assert two_sum3(nums, target) == ans
7474

7575

7676
short_circuit_cases = [
@@ -91,7 +91,7 @@ def main():
9191
for nums, target, ans in interesting_cases:
9292
assert two_sum1(nums, target) == ans
9393
assert two_sum2(nums, target) == ans
94-
assert two_sum3(list(nums), target) == ans
94+
assert two_sum3(nums, target) == ans
9595

9696

9797
if __name__ == '__main__':

0 commit comments

Comments
 (0)