+ 2
3rd test case failed in No Numerals code in java
Please help I can't find why 3rd test case is failing https://code.sololearn.com/cuxCnBUiBQIX/?ref=app
5 Respostas
+ 5
This is a very common mistake which people do in this code coach problem.
Krishnanshu Dey the reason it is happening is that your code is converting "10" to "onezero" not "ten".
+ 2
But I already debugged this issue. And add another line for ten. But it still facing the same problem in 3rd test case.
+ 2
Krishnanshu Dey the error will still persist as system still reads "10" as one and zero seperately not 10 as a whole.
Just push your brain a little and alter your algorithm a bit. You will definitely reach to a solution and that is the real fun while solving these problems
+ 2
Yeah I got the problem. Thanks 😀👍
+ 2
Finally I solved it.
https://code.sololearn.com/cuxCnBUiBQIX/?ref=app