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.
you realize not all beginners have as much knowledge as you, so technically this is good for a beginner, get out of 7ku difficulty, this is easy mode.
okay then, i guess i did not find the correct algo. but it's still an issue that the tests let me get away with a limit 10 times lower than what is stated
My original code passes the attempt tests repeatedly in less than 2 seconds.
did anyone complete this recently ? the only way for me to pass is to reduce the limit from
150
to about110
. i dont think my algo can be optimized much, i reduced data conversions and loops to a minimum.Besides, the
150
limit seems to be problematic in itself: reducing it to about14
or15
passes the tests 99% of the time, so it is not actually enforcedThe end of the description of this kata says try not to use the if function, so this solution should not be voted for best practices!
.
Revised fork: https://www.codewars.com/kumite/5d95a3e7ab4aad0022dbf303?sel=5da2c7e12aec73af332917e9
Changes:
100
random testsI wrote a fork here: https://www.codewars.com/kumite/5d95a3e7ab4aad0022dbf303?sel=5da2c7e12aec73af332917e9
Changes:
flatten
instead ofdeep_flatten
100
random testsThis can be made more identical to the original kata by making
deep_flatten
a variadic function. This works for Python because JS has an equivalent operator for putting a variable number of arguments into a list.@smartspot2, yeah a Python translation of that kata would make more sense.
I created a translation of this kata into Python: https://www.codewars.com/kumite/5d95a3e7ab4aad0022dbf303?sel=5d95a3e7ab4aad0022dbf303
Ah, sorry. Should I instead publish a translation of https://www.codewars.com/kata/513fa1d75e4297ba38000003?
duplicate -- an identical kata was just reverted back to draft yesterday for the same issue: https://www.codewars.com/kata/5d93cd97d8e7b3002c263ae3
Because the original author apparently thought that was a good idea.
I've now changed it to deliver a constant 200 random tests.
Why a random number of random tests?
Loading more items...