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.
This one is concise and well-understandable, respect!
The explanations I have seen suggest that for short lists sorting and slicing can be faster but sorted() starts to chug on big lists, so min() max() is better practice when you don't know how big the list is going to be.
my brain hurt bro,what is going on,wth man
ok i got it but i forgot the(start,stop,step) XD
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
man,really really thank you, i get it now.
because it refers to step. range(start, stop, step)
why you repeat x? can you explain pls, i don´t get it.
That's what I did
What is more performancy - list() or [for in]?
Very clever!!!
nice rewrite :)
love this
Every time I use regex I learn something new. Very elegant compared to mine.
This comment is hidden because it contains spoiler information about the solution
Loading more items...