Arrays-Target Sum Triplets


its giving the wrong answer.please help.

hi shubi
u have not include the case when there are 2 or 3 equal number in the ans
like a[i]==a[j]==a[k]
Also using too much if else condition is not a good programming just sort the array u will find the ans in increasing manner
just ckeck this

thank you for the help.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.