Ad
  • Custom User Avatar

    When that happens, check you don't have an infinite loop. Or your code is not performant enough.

    k can go up to about 10,000,000,000

  • Default User Avatar

    Hello,
    I used a "for loop" or "while loop" in this kata. All test passed. But I can't submit my solution because it exceeds 12000 ms.
    Someone can give me a hint to improve :)

  • Default User Avatar

    You can benchmark on your computer different solutions that passed at CW.

  • Default User Avatar

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