Sir can you tell why I am getting an error
Doubt in Array Target Sum pairs
Sir is there a more optimal solution ,
i think yes you can solve this question only using two pointer approach as well.
in that there will be no need of for loop as well.
check this:
1 Like
This is what I tried to do with the hints in the video Thanks sir!
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.