Skip to content

Commit

Permalink
Update triplet_sum.py (TheAlgorithms#2404)
Browse files Browse the repository at this point in the history
  • Loading branch information
NEERAJAP2001 authored Sep 6, 2020
1 parent 3b1c4f7 commit c0dcc55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions other/triplet_sum.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def make_dataset() -> Tuple[List[int], int]:

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

def triplet_sum2(arr: List[int], target: int) -> Tuple[int, int, int]:
"""
Returns a triplet in in array with sum equal to target,
Returns a triplet in the array with sum equal to target,
else (0, 0, 0).
>>> triplet_sum2([13, 29, 7, 23, 5], 35)
(5, 7, 23)
Expand Down

0 comments on commit c0dcc55

Please sign in to comment.