My answer is wrong

I have done the same thing which was taught in this video
please help…

hello @ishank01
u need to handle corner cases for line 27 (like i1=0 then i1-1 will be -1 so u need to handle this seprately).

refer this->

Thank you so much bhaiyaa

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.