Logic peoblem in array

here mam traversing the r ponter at timme stamp 2.30 two times and l pointer only oone time its irregular.how we take loop after that

@Aditya-Kushwaha-914550392281281 hey ,loop me teen conditions hai on l and r agar dono ka sum target se chota hai to l++ agr bda hai to r-- aur agar target sum ke equal hai to woh print kro and then l++ and r-- both kyunki hme mil chuka hai pair.Hope you get it .Happy coding :slight_smile:

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.