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.
Yes. But another question: is it best practice to use such a non-concise code? You must remember the order of operations. In my opinion, it is really hard to read. I would use parentheses instead.
This comment is hidden because it contains spoiler information about the solution
well, this kata has loop tag
This comment is hidden because it contains spoiler information about the solution
I'm sort of a js noob, how did you compare the execution times and with what inputs? I tried using something called perflink and somehow got the exact opposite result?
Faster to type, but not faster to compute. It takes over twice as long for the computer to accomplish this task than a while loop. Hopefully in the past three years you've come to realize the compounding importance of this and perhaps grown some perspective on why you may not always be right, while looking down on others less.
Maybe 'cause there is another one identical but from 2 years prior just below the top one?
Nice feature, got it now! ))
I agree. I'm new here and I'm still working on all the low hanging fruit. Most of the top answers I've seen so far have been one liners (and very enlightening). I was shocked this solution wasn't at the top of the list. Even people who aren't programmers know there's a formula for summation (no offense). This was my first upvote for best practice.
This comment is hidden because it contains spoiler information about the solution
Hey, thanks!
This comment is hidden because it contains spoiler information about the solution