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.
OMG... the amount of time it took me to figure out WHY my code couldn't pass the one test... and then the extra time to figure out which rounding method to use... uugh
OK. Second thouths: you're right. If I dont cut after decimal my condition is met earlier...
Could it be done without iteration or recurdion....?
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.
This would explain if I get greater number but I'm getting less than in test!
Read the description again:
You need to do that on each year if inhabitants is a float number.
When I realized that I passed over 200 tests, only to fail the last one, my jaw hit the floor