Two test cases not passing

whats the problem with my code.


Reply as soon as possible

hello @D19APPPP0016
i think u have shared wrong link ,
pls check and share the correct one

https://ide.codingblocks.com/s/258339 plz check it

this condition in while loop is not correct.
image
it should be->
image

I got that but with this approach many test cases were not passing which i thought earlier. Check it https://ide.codingblocks.com/s/258348

i dont see any error in ur code.
try submitting again

i tried but its not getting accepted

With this approach only two test cases are passing ,rest showing run error

okay i got my error thanks