Ad
  • Custom User Avatar

    pretty pythonic recursion!

  • Default User Avatar

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

  • Custom User Avatar

    Many people have already solved the kata in Python so the kata works. If your code is not efficient enough or it doesn't work, why not blame yourself instead of the kata?

    Going on to downvote all my comments does not prove that you're right, or I'm wrong.

    The point here is that, what "you think" doesn't matter, the kata works (as the stats have shown) and you're not doing anything by just disagreeing and claiming it doesn't work. Or: you need to git gud.

  • Custom User Avatar

    Emm, I use an "in" inside a single loop so it should be O(n**2) right?
    Then I need to find a real O(n) to solve the problem...?