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
Resolving question.
I'll give you a full example:
You can't use any number, the number you have to return is the position that particular word is when sorted alphabetically between all the words with the same letters, is it clearer now? Mark it as resolved if it is.
I can assign any number to any word. And it would be a solution. But it would not, in fact, be YOUR solution.
And that's the problem: You did not give a specific value format to follow.
The check is for blank spaces because
For those having the trouble of weird justification errors; Make sure you read the instructions thoroughly. They throw some curveballs in there. XD
No spoilers but; that error is directed towards the line it's on. Re-read the instructions, because there's a case you're missing.
I enjoyed the simplicity of this kata. I do however think that more should've been hidden (if possible, i haven't written a kata yet, so i don' tknow the feasibility.)
Something like: "There is a bomb defined somewhere, figure out where to find and diffuse it."
And instead of giving us the functions, we have to find them and call the disable with correct key, or we lose.
The current description pretty much gives us all the answers.
"We can then assign a number to every word, based on where it falls in an alphabetically sorted list of all words made up of the same group of letters."
What does each letter/word/space/position have for a value?
Your expectations for what exact value you want returned is very poorly defined.