https://hack.codingblocks.com/contests/c/509/215
my code-https://ide.codingblocks.com/#/s/30786
I am not getting the desired output.
Arrays target sum triplet
https://ide.codingblocks.com/#/s/30790
i have corrected the code and marked the comments.
Note. You are solving this problem using O(N^3) approach, but you can solve this in O(N^2) using sorting and two pointer method.