Ad
  • Custom User Avatar

    / is not the same in Python 2 and Python 3 ;-)

  • Custom User Avatar

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

  • Default User Avatar
    • not an issue of the kata, an issue of your code => closing
    • recursion is beautiful, but not always the good way
    • if you believe there is an issue, you have to document it. The very least here would have been to give the error that is raised. I'd either bet on a time out or a stack overflow. In both cases, with almost 4000 people having already solved the kata, you'd bet that the problem is rather on your side... ;)

    Seek for another way, then. :)

  • Default User Avatar
    • not an issue of the kata, an issue of your code => closing
    • recursion is beautiful, but not always the good way
    • if you believe there is an issue, you have to document it. The very least here would have been to give the error that is raised. I'd either bet on a time out or a stack overflow. In both cases, with almost 4000 people having already solved the kata, you'd bet that the problem is rather on your side... ;)

    Seek for another way, then. :)

  • Custom User Avatar

    tried to solve this using simple recursion.
    it won't work even though it does in my computer.