Ad
  • Default User Avatar

    Hi @derekMgwena - all kata on codewars have a timeout limit; depending on the language you are working in that can be something like 10 - 15 seconds, which is the maximum allowed time for your code to execute.

    If you are timing out, it is because your code is taking too long to solve the kata - even though it might eventually obtain the correct answer if you let it run for a long time.

    In other words it is not efficient enough; you need to find a better (faster!) algorithm

    If you think that this is not the case, then you can check for alternative explanations here:

    Timeout troubleshooting