Ad
  • Custom User Avatar

    Whoever wrote the tests might have been lazy and chose to use random integers as keys to not implement a random string generator. If you are parsing the string manually, this makes the task harder, but it can be solved in a trivial way if you use a rather notorious language feature instead.

  • Custom User Avatar

    The error message is unclear, what it means is that your output is wrong. Print the input string and your hash before returning it to see whether they're the same.