Skip to content

Commit c0dcc55

Browse files
authored
Update triplet_sum.py (TheAlgorithms#2404)
1 parent 3b1c4f7 commit c0dcc55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

other/triplet_sum.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def make_dataset() -> Tuple[List[int], int]:
2020

2121
def triplet_sum1(arr: List[int], target: int) -> Tuple[int, int, int]:
2222
"""
23-
Returns a triplet in in array with sum equal to target,
23+
Returns a triplet in the array with sum equal to target,
2424
else (0, 0, 0).
2525
>>> triplet_sum1([13, 29, 7, 23, 5], 35)
2626
(5, 7, 23)
@@ -39,7 +39,7 @@ def triplet_sum1(arr: List[int], target: int) -> Tuple[int, int, int]:
3939

4040
def triplet_sum2(arr: List[int], target: int) -> Tuple[int, int, int]:
4141
"""
42-
Returns a triplet in in array with sum equal to target,
42+
Returns a triplet in the array with sum equal to target,
4343
else (0, 0, 0).
4444
>>> triplet_sum2([13, 29, 7, 23, 5], 35)
4545
(5, 7, 23)

0 commit comments

Comments
 (0)