Target sum pair challenge(arrays)

getting an error in this code. Kindly help

@mkidwai74 wait some time will check it

@mkidwai74
first of all while left<right not vice versa
secondly print left one first as o/p should be sorted
if your doubt gets cleared dont forget to mark it resolved and hit like :smiley:

hey thanks ,
but still only two test cases are correct.

@mkidwai74 you were just forgetting brackets in the else (line 23)

hey, it still only passes 2 test cases


@mkidwai74 no bro copy correctly it passes all 4

also close your tabs and login again then copy correct and then paste

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.