Hi,
Please check
TLE is coming doubt
hello @vatsal50

u need to consider this in ur code->
a) here u need to push the arrow in ur stack if it is not destroyed.
b) the loop should stop if the current arrow get destroyed or when stack get empty.
So , I just need to write while(abs2>abs1 &&s.empty()==false)?
I think 1st condition you mentioned is satisfied with abs2<abs1
once refer this , u will get all the cases that i m saying.
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.