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.
This comment is hidden because it contains spoiler information about the solution
It shows how important good tests are. If they had a test case with imput "Croatia-Slavonia", I would've added extra line in order to remove the symbols.
Nice question btw.. I haven't actually noticed that :D It's funny but solution worked. I never thought about dashes when I was writing the solution..
Wow! What's happening here?) Can somebody explain?
Because without ::real the result of division becomes integer.
Hm, what about "not the dashes, spaces, apostrophes, etc"? Only spaces are being checked in this solution.