Ad
  • Custom User Avatar

    Might help those who get stuck:
    Isn't a particularly difficult Kata, but just don't modify the original map or unexpected error may occur since the same map is reused between tests.
    Just create a copy of the original map and modify it as you want will work.

  • Custom User Avatar

    Tried several different approaches, literally dynamic planned everything possible, and replacing all 2 ** to 1 << to get it passed in time.

  • Custom User Avatar

    Passed with Python 2.7.6.

    Just ignore the sample tests and assume that you are right; Go for the attempt.

  • Custom User Avatar

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

  • Custom User Avatar

    Just a reminder:
    The return type is a dict rather than a struct for Python, if you are new to Python and it confused you...

  • Custom User Avatar

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