it is giving wrong answer for 1 test case
pls help
Target sum triplets using [ O(n) ]
@chahatkumar hey chahat your code is fail to handle this case
9
9
8
7
6
5
4
3
2
1
12
your output is
1, 2 and 9
1, 3 and 8
1, 4 and 7
1, 5 and 6
2, 3 and 7
2, 4 and 6
but output should be
1, 2 and 9
1, 3 and 8
1, 4 and 7
1, 5 and 6
2, 3 and 7
2, 4 and 6
3, 4 and 5
okay thanks