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.
(javascript),same timeout.LoL
Fixed, tests also refactored to be maintainable (seriously they were a catastrophe before).
Python random test generation can crash due to overflow.
Cannot reproduce.
Cannot reproduce in Python.
If you aren't passing the non performance tests essentially instantly you have the wrong approach.
There is only one working approach in Python and it isn't that.
If C lets that through then the tests need to be hardened significantly.
not sure if it's the right answer, but you are assuming that the Codewars' servers are as fast as your computer (perhaps more accurately, that the computing power they allocate to running your code is on par with the one you have on your own machine). 3.5s vs 12s is not that big of a difference, it's roughly the same order of magnitude. usually, when you start wishing you had more computing power, it's time to optimize your algorithms and data structures first
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
it is mentionned though:
Yeah, I feel best practice is to use memoization, and that honestly feels beyond 5 Kyu-knowledge.
There's something wrong with the description. It says that the padding character should be Ascii(11), but - at least in Swift - the padding character was actually "÷", as can be seen from the tests.
This made my attempts fail first.