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.
you are the GREAT!!!
but need to do floor()
because the number of people cannot be fractional :)
nbYear(a, b, c, d) => a >= d ? 0 : 1 + nbYear((a + a*b/100 + c).floor(), b, c, d);
i tested this function against the simple while loop solution with 500.000 and bigger upper limit it is in fact less performant
Mindblowing
fucking genius you beat me
awesome recursion.
else if
Very well summarized! Although the keys are not necessary since "n" has no property.