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.
Indeed, with a 25-letters word there are 15,511,210,043,330,985,984,000,000 possible anagrams (25!)
So there is a very slight possibility that you exceed the expected 500ms computation time.
I don't know if you finished it since, because I personally solved this in python and not in ruby. But just in case, you can compute the word index directly from the letters in your word ;)
Check the Python solutions and you'll see. :)
This comment is hidden because it contains spoiler information about the solution