• Custom User Avatar

    Your code is too slow, so it times out because it's taking like half a minute to run. Optimize it.

    Efficiency and trying to figure out how it works are essential: with a brute force approach, some tests with larger numbers may take more than the total computing power currently on Earth to be finished in the short allotted time.

    - the kata's description

  • Custom User Avatar

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