Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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.
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
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.
I have ran my code in different IDEs and it works fine but here I'm facing timeout issues. Codewars hould fix this