Whats the reason of error in my code?

ksajflks

hi @devyanshbansal123 which code u have send i guess this is not the right question for it

Hello sir???/

hi @devyanshbansal123

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.

kindly check above code sir

hi @devyanshbansal123 ur code doent check for unique triplet
refer : https://ide.codingblocks.com/s/656672

kindly check this code and correct it with proper explaination about why is it wrong

hi @devyanshbansal123 commented https://ide.codingblocks.com/s/667257

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.

kindly explain it in my code code not yours

Both r same please check @devyanshbansal123

I am not able to understand why did u used while loop for a[j] and a[m] and a[i] being equal to second ,third and first can you explain it pls

@devyanshbansal123 to avoid duplicates suppose once second was 1 then we do not want it to be one for that value of first and third as it will add duplicates