Why test cases condition is portrayed as failed on execution of code coach problem? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why test cases condition is portrayed as failed on execution of code coach problem?

What these test cases failed suggest?I tried the program using java particularly the one in which we have to extract digit from sentence and rewrite the digit in words and to put it in that sentence.

31st Dec 2019, 9:08 AM
shubham kumar
shubham kumar - avatar
3 Answers
0
In that, you need to read read input line. When numbers from 1 to 10 encounters you need replace with that corresponding word. Special case is when you encounter 10. This one only tricky... Do You not noticed that?
31st Dec 2019, 9:33 AM
Jayakrishna 🇮🇳
0
I noticed that because I used switch case to execute that and characterisLetter() and character is Digit ()to check every character and using Ascii code value for each character in order to know that it is a character.
31st Dec 2019, 9:38 AM
shubham kumar
shubham kumar - avatar
0
That's only means that your program not matching with the expected output on corresponding inputs...
31st Dec 2019, 10:11 AM
Jayakrishna 🇮🇳