Ad
  • Custom User Avatar

    If your code times out your code does not "work" or "run fine".

  • Custom User Avatar

    If you do it with math rather than building a larger Array each time you can manage it.

  • Custom User Avatar

    This is because you are using inefficient algorithm, guys. Try to find an algo that will manage the task within 6 seconds.

  • Default User Avatar

    I get the same error in c# I pass 16 tests fine then timeout on what seems to be the final test. Code runs fine in VS2013

  • Custom User Avatar

    I have the same issue in Ruby. I'm assuming that you (AlexIsHappy) give a very large 'r' in one of the tests, but the way codewars is setup the code just times out after ~6 seconds. Are you trying to get us to come up with a way to process very large numbers in a short period of time, or does the test need to be rewritten?