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.
yep exactly the same issue for me. i even checked with chat gpt to make sure i wasnt going crazy and missing something.
edit:
i realize now that there is a solution to get that test case. im surprised that chat gpt didn't get it.
Most solutions are either iterative or recursive. There is one exception, but I don't like how it solved that edge case, hardcoding it.
If your calculated population is higher than it should be, then you'll reach the target one in fewer years.
And that's what you wrote. The test is fine.
Read the description again:
You need to do that on each year if inhabitants is a float number.