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.
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
it works tho
Nope it's a good kata and very detailed description. Try writing it on a paper. Look for increament between diamond.
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)")
https://www.calculator.net/triangle-calculator.html Try 7,2,2 with no degree on this website. I think you will get the idea.