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.
The correct answer is 4 in this case the tests are different. In the description you reach 1213, to reach 1214 you need a part of another year.
After solving (in my opinion) this puzzle, I get the same error from a test case of the "Attempt" submission.
I also think the correct answer for the test case :
is
3
, for 3 years.This test case is similar to the one given in the kata's description and this description itself proposes
3
as the correct anwser. I completely agree with the demonstration of @uslu.I don't understand how this is supposed to work. I convert the calculated population to an integer, but still get the number of years 3
A similar case is explained in the kata's description. Read it again.
careful, there are exceptions to the rules. It's in the link too
Where are you seeing the wrong order (sample tests, attempt tests)? In which language?
No, read the link.