Target sum triplets

My question isn’t showing the output. Kindly have alook it is saved at ide https://ide.codingblocks.com/s/163825

Hi @yath17
In the while loop in if case after printing triplet you have to do l++ and r-- so that you search for next triplet.

1 Like