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.
nice :)
to be clear, this is not the best solution as it uses O(n^2 log n) time; Blind4Basics solution is better.
Double is used for slicing not indexing
Only way to avoid a timeout. What a dumpster-tier kata. Embarrassing for the creator.
wow!
wow how i couldn't think this way ;)
it's very simple idea and clear, big thanks
to be fair, he fixed the code. It was never specified to to keep use the same module
Just make a research with the names of the methods you don't know and you should find all the informations about it.
Someone can explain me this please? ^^
It's a solution of a programmer knowing his language.
12 Best practices and 18 Clever votes
don't you think this is a typewriter operator, not a programmer, solution?
No, it doesn't.
Here's a profile of running this problem 10 million times with an if/if/if solution versus an if/elif/else solution:
Even if it did, if you care about nanoseconds you shouldn't be choosing different flow control syntax in Python, you should be choosing a different language.
if elif else statement works faster than if if if
rly? well, maybe it's clever but not sophisticated.
Oh boy. I really need to take a closer look to the built-in methods.
This is so obvious and I wrote like a mile of code. - Thank you for this solution.
Loading more items...