Run time error during submission


Sample test is passed but run time error during submission

hello @aatish08
a)
image
put them inside while loop.

b) image
remove this if statement , else will handle all cases.

1 Like

Done thanks for the help :slightly_smiling_face: :slightly_smiling_face:

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.