Ad
  • Default User Avatar

    Please note there are over 8K solves in the Python version (your language). Such an issue would have been long resolved. I have just run a solution in 948ms. Also, it's profoundly unlikely that these two websites share the same exact test code. So, you will still need to optimize futher.

  • Custom User Avatar

    no it isn't. My code took ~500ms on leetcode but codewars gave me a timeout after 12000ms. So, the code is not running correctly in codewars

  • Custom User Avatar

    Writing good code also means writing efficient code; if you are getting timeout issue on codewars it's likely that your code is running much slower than it could to reach the same solution.

  • Custom User Avatar

    I have ran my code in different IDEs and it works fine but here I'm facing timeout issues. Codewars hould fix this