0

Code coach No Numerals

hi All, Code coach No Numerals test cases are passing except test case 5, can you tell me why ? Here is the code https://code.sololearn.com/c0S02JRWehms/?ref=app

7th Mar 2020, 11:23 PM
Jakub Biesek
Jakub Biesek - avatar
6 odpowiedzi
+ 4
Jakub Biesek did you read all the instructions closely ? I know you overlooked one and if you reread it you will understand your mistake... Don't need to change the numbers part... or the code itself but think about the input... ( hint )
7th Mar 2020, 11:34 PM
BroFar
BroFar - avatar
+ 4
String read = Console.ReadLine().Replace("10","ten").Trim();
8th Mar 2020, 1:11 AM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
+ 2
Hi all, As mentioned input 10 was producing an output of 'onezero' String read = Console.ReadLine().Replace("10","ten").Trim(); helped and now all test cases passed successfully Thanks all !
8th Mar 2020, 10:05 PM
Jakub Biesek
Jakub Biesek - avatar
+ 1
Try to run your code with input '10'.
7th Mar 2020, 11:31 PM
HonFu
HonFu - avatar
+ 1
It looks quite complicated. Look at here: https://code.sololearn.com/csRCm5eYElqs
13th Mar 2020, 9:53 PM
Ambrozja 🇵🇱
Ambrozja 🇵🇱 - avatar
0
BroFar Hi, is it the input to lower case you are talking about ? After applying ToLower() to input, cases 3,4 and 5 are failing
8th Mar 2020, 9:13 AM
Jakub Biesek
Jakub Biesek - avatar