Ad
  • Custom User Avatar

    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 ;)

  • Default User Avatar

    Check the Python solutions and you'll see. :)

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution