I’ve been trying to solve this issue but somehow i am unable to solve all the test cases. As of now i can clear test case 1 and 2. There is failure in test case 0 and 3.
Unable to solve all test cases in target sum pairs in array
@Raunak-Agrawal-1537545869717573,
Logic is correct. Just sort the array before starting with the for loop.
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.