1 parent 3b1c4f7 commit c0dcc55Copy full SHA for c0dcc55
1 file changed
other/triplet_sum.py
@@ -20,7 +20,7 @@ def make_dataset() -> Tuple[List[int], int]:
20
21
def triplet_sum1(arr: List[int], target: int) -> Tuple[int, int, int]:
22
"""
23
- Returns a triplet in in array with sum equal to target,
+ Returns a triplet in the array with sum equal to target,
24
else (0, 0, 0).
25
>>> triplet_sum1([13, 29, 7, 23, 5], 35)
26
(5, 7, 23)
@@ -39,7 +39,7 @@ def triplet_sum1(arr: List[int], target: int) -> Tuple[int, int, int]:
39
40
def triplet_sum2(arr: List[int], target: int) -> Tuple[int, int, int]:
41
42
43
44
>>> triplet_sum2([13, 29, 7, 23, 5], 35)
45
0 commit comments