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.
wow!! that's nice
This comment is hidden because it contains spoiler information about the solution
Amazing solution for this excercise, Inspiring I need more practice!
Wow, I wonder why I never thought to do this.
Smart solution. I dont know why i never considered adding them up beforehand.
Nice one !! .. Superb ..
this is was very smart!
Great, this was my solution as well. Only difference was I used the arrow function with implicit return.
I love this one!
This actually works, but how?
If TNIN description requires summmation of odd and even numbers separately and then multiplying by 7.
Really confused how this actually passes tests.
This comment is hidden because it contains spoiler information about the solution
lol using a lambda when you could have just added "return" to the beginning
How about works this function?
I'm curious this solution.
I compared time between you and me.
you: 100000 loops, best of 3: 9.61 µs per loop
I : 10000 loops, best of 3: 20.1 µs per loop
Oh, good point: it seems so natural to me now, I wonder why I didn't think about it back then :o!
You can get the sum of a set to avoid the false positive problem.
sum(set([5,5,5,5,5,5,5,5,5]) = 5 => not 45