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.
good though
hes a menace but a genius nonetheless
Democracy, the people have decided
well in this case i belive just summing operator "+" is most performance efficent.
This comment is hidden because it contains spoiler information about the solution
This is so clever!
I thought that I could use Math.sum instead of a + b + c..Does anybody know the convenient function for summing numbers?
Read the post above for an explanation.
Could you please tell me the name of the formula behind this code?
Why we devide by 2?
I suck at math but I want to understand the math logic behind this
This comment is hidden because it contains spoiler information about the solution
it works tho
Thanks Rambutan for still providing golden nuggets of knowledge 6 years later! I'm new too and while I did solve the problem this is a great explaination/break down on incrementing and loops.
Is divided by 2 is really the right answer? I think it will get error if we got case like 100,2,2. (Maybe try changing it with "- Math.max(a,b,c)")
so simple
Oh, I didn't know. Thanks!
Loading more items...