Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I bumped into the same problem as everyone else. First tests were ok, but random threw an exeption.
I have no idea what was wrong(c++ btw). At the end of the day I gave up and peeked to the answers, compared output from someone's answer and to my surprise they were IDENTICAL!!!
I don't know how and why but when I submitted my solution after, all tests were ok.
I'm still confused. And have no idea why it didn't work and suddenly does.
thanx
Print the input yourself to see what it is: https://docs.codewars.com/training/troubleshooting/#print-input
I'm sorry for this task, which don't have clear tests. What is the input in the test, where I get an error? In the tests window, description of the test I bumped into is absent.
There is nothing to fix, but your code. Not a kata issue.
The input is not
"123 "
see where the closing quote is in the error message.This comment is hidden because it contains spoiler information about the solution