16 ответов
+ 2
I'm not sure. But maybe it is because the whitespace after the last word. Could you try to put a whitespace only between words but not after the last one?
23rd Dec 2019, 10:35 AM
Coding Cat
Coding Cat - avatar
+ 2
HonFu is right. We don't have to use capitalization. See description: Input Format A string of the sentence in English that you need to translate into Pig Latin. (no punctuation or capitalization)
23rd Dec 2019, 10:44 AM
Coding Cat
Coding Cat - avatar
+ 2
HonFu Thomas thanks But fixing it did not solve the problem.
23rd Dec 2019, 10:52 AM
takeru
takeru - avatar
+ 2
Ok, I'm wrong. I had a look on my solution. It also added a whitespace at the end. But passes all cases
23rd Dec 2019, 10:54 AM
Coding Cat
Coding Cat - avatar
+ 2
I could pass except #3
23rd Dec 2019, 11:03 AM
takeru
takeru - avatar
+ 2
Yes, I've tested it with same result. I hate things like this 😞
23rd Dec 2019, 11:04 AM
Coding Cat
Coding Cat - avatar
+ 2
I also had one more issue reported: Someone checked for punctuation. That's also not needed. But when they did, there was a mistake. Which can only mean, that they slipped in punctuation in one of the tests, right? Which would be ridiculous. It's like they were saying: 'Hey, what's up with you? Your code doesn't even run with crappy input!!!' So just split the string in words, not regex it for all being letters (that's what you are doing, right?), and try again.
23rd Dec 2019, 11:44 AM
HonFu
HonFu - avatar
+ 2
HonFu thank you so much!! I could solve this problem!
23rd Dec 2019, 11:58 AM
takeru
takeru - avatar
+ 2
Nice, finally! :)
23rd Dec 2019, 12:10 PM
HonFu
HonFu - avatar
+ 1
I have heard a few times that downcasing stuff led to problems. The task means: Don't bother with upper/lower. But if you do anyway, you get an error (which doesn't really make sense, but anyway). So I'd try just that, take out the downcase call and see.
23rd Dec 2019, 10:38 AM
HonFu
HonFu - avatar
+ 1
Okay, shoot...😅
23rd Dec 2019, 10:53 AM
HonFu
HonFu - avatar
+ 1
Focus
25th Dec 2019, 11:07 PM
Yabetsa
Yabetsa - avatar
0
it worked for me..
23rd Dec 2019, 9:04 PM
Aaliyah~
Aaliyah~ - avatar
0
I could also pass expect #3
24th Dec 2019, 4:26 PM
Brave Nambaje
Brave Nambaje - avatar
- 1
Х Привет
23rd Dec 2019, 5:11 PM
Георгина Шанков
Георгина Шанков - avatar
- 1
Люди
23rd Dec 2019, 5:12 PM
Георгина Шанков
Георгина Шанков - avatar