From eaab46404307316dbb0ed63771d6a6fb0f56f883 Mon Sep 17 00:00:00 2001 From: NEERAJ ADITYANANTH POLAMPALLI <65017645+NEERAJAP2001@users.noreply.github.com> Date: Sun, 6 Sep 2020 14:04:28 +0530 Subject: [PATCH] Update triplet_sum.py --- other/triplet_sum.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/other/triplet_sum.py b/other/triplet_sum.py index a7d6e6331dbc..247e3bb1618d 100644 --- a/other/triplet_sum.py +++ b/other/triplet_sum.py @@ -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) @@ -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)