Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c0dcc55

Browse files
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‎

Lines changed: 2 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /