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.
I think its pretty readble to me.
Stop writing one line! It is not readable
well, most of times we call some functions without knowing how it's done inside the blackbox, that is abstraction. it is a fact that is not readable but you would not need to read that.
Unreadable. I wish code like this would not get upvoted so much. This is not best practice.
Please stop arguing guys. All those solutions are bad, yours and mine too. We parse twice the array while it would be so easy with only one pass.
@WloHu list comprehension is an important thing to learn for python newbies. And your solution actualy IS shit
lol
donio95, because soriting takes O(n*log(n)) time, finding the minimum takes O(n) time.
sekulski, why is it have greater computational complexity than list of lens?
However, it has much greater computational complexity.
I love how simplistic this is. Instead of writing a code to find the shortest, make the shortest the first then grab the length of the first.
I have to concure with j.pihlgren, it is not clear what you are saying at all. If you are going to critique the solution could you please provide a better explanation as to what is expected as what is presented is not clear at all.
Moving on, failing any solution just because you don't like it limits the creativity of everyone involved including yourself.
If something solves a problem it is valid, period.
This comment is hidden because it contains spoiler information about the solution
This shouldn't be here. The idea is kind of clever but the implementation is bad.
I fail everyone who does
any([...])
-like stuff and] + [
instead,
or"" + ""
instead"" ""
.It's ok that you are experimenting but I mostly shame people for bringing this up for newbies to learn "good practices".
This comment is hidden because it contains spoiler information about the solution
Loading more items...