Skip to content

Commit d2c2bba

Browse files
committed
Fix unnecessary 'else' clause in loop
1 parent a5d5b08 commit d2c2bba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

other/triplet_sum.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ def triplet_sum2(arr: List[int], target: int) -> Tuple[int, int, int]:
6161
left += 1
6262
elif arr[i] + arr[left] + arr[right] > target:
6363
right -= 1
64-
else:
65-
return (0, 0, 0)
64+
return (0, 0, 0)
6665

6766

6867
def solution_times() -> Tuple[float, float]:

0 commit comments

Comments
 (0)