• Custom User Avatar

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

  • Custom User Avatar

    It's difficult to say why your code works incorrectly if we don't even know what language you try, and what your code is. Post your code here (remember about code formatting and mark it as spoiler!) so we could take a look together and help you find your mistake.

  • Custom User Avatar

    Not a kata issue, your current code passes that test, but it is too slow to pass the Attempt tests.

    NOTE on performance: There are no fancy optimizations required, but still the most trivial solutions might time out. Numbers go up to 2^31 ( or similar, depending on language ). Looping all the way up to n, or n/2, will be too slow.

    Read that part of the description again. Read the Troubleshooting guide too: https://docs.codewars.com/training/troubleshooting

  • Custom User Avatar

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