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.
I believe it is suposed to start from 0. When inputing 3 years it begins from 0. 0 would be 1st year 1 the 2nd 2 the 3rd and 4 the 4rth.
This comment is hidden because it contains spoiler information about the solution
I like this one. Makes use of only one loop this is genius.
This comment is hidden because it contains spoiler information about the solution
cool just wanna say thanks that link you provided really helped me understand that concept. Basically what he is doing is finding out the number of attacks it would take fighter b to get fighter a to zero(0) based on fighter bs dmg per turn.(Basically using division to find out the total amount of attacks required to reach 0 based on health + dmg)
By comparing whether one fighter takes more turns or less than the other to get to 0. You can say that if fighter one (fac1) takes less turns then the other to get to 0 he would lose the battle first making fac2 the winner. If it were the other way around than fac1 takes the cake. That is really neat what he did there =);
what do you mean by fractions?
me too :)
After winning a war I would like to see a flag next to the defeated challange. That way I can see my cadavers grave.(I though about how when I pass a codewars challenge theres no checkmark to let me know that I have completed it already. ) I really want this feature XD.