Hi,
I’ve tried input of all lengths and it’s working fine on my local, but two of the test cases are throwing RTE. Could you please help?
Runtime error on 2 test cases
Hello @Anshul-Chauhan-10221922864290257,
Your code is failing because of the way you are reading input.
and the testcase has an extra space in it.
Example:
-
1
4 (A space after 4)
0 0 0 0
Result:
Causing error -
1
4(No space after 4)
0 0 0 0
Result:
Correct Output.
Hope, this would help.
Give a like if you are satisfied.
Hello @Anshul-Chauhan-10221922864290257,
Sure, i’ll convey the same to your mentors.
Please, mark it as resolved if you don’t have any more doubts regarding this.
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.