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.
fast and practical
YASSSS QUEEN!!!
Very simple.
Great
This is a generator comprehension actually, so slightly more efficient.
On call func, traceback - TypeError: 'int' object is not iterable
This comment is hidden because it contains spoiler information about the solution
Why, what's the problem? Care to elaborate?
i thought this woudnt work. The more you know
This comment is hidden because it contains spoiler information about the solution
I'm a little bit scared of the production code of the 130+ people that voted this as being Best Practice...
Man it didn't even came in my mind
Very nice solution
Yep, came to post the same thing.
This is better than the current top-voted solution. Many people using (numbersCount < 2), but they are just executing a for loop they don't have to in the case of numbersCount = 2.
My code was very similar, but you can return 0 with numbersCount < 3, which would save you from executing a for loop unnecessarily on the case numbersCount = 2...
Loading more items...