+ 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

8th Feb 2020, 1:39 PM
Krishnanshu Dey
Krishnanshu Dey - avatar
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".
8th Feb 2020, 1:42 PM
Arsenic
Arsenic - avatar
+ 2
But I already debugged this issue. And add another line for ten. But it still facing the same problem in 3rd test case.
8th Feb 2020, 1:46 PM
Krishnanshu Dey
Krishnanshu Dey - avatar
+ 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
8th Feb 2020, 1:49 PM
Arsenic
Arsenic - avatar
+ 2
Yeah I got the problem. Thanks 😀👍
8th Feb 2020, 1:52 PM
Krishnanshu Dey
Krishnanshu Dey - avatar
8th Feb 2020, 1:58 PM
Krishnanshu Dey
Krishnanshu Dey - avatar