Target Sum Pair Challenge

My code is showing TLE.
Please tell why?
Here is the link to it

hello @siddharth_redhu

check now->

u were not updating pointer s/e inside if of while loop

Still Test Case 3 is failing

And also in loop we have to do both s++ and e–?

@siddharth_redhu

u can do that as well

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.