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.
This comment is hidden because it contains spoiler information about the solution
Finally it makes sense why I was only failing 1 test. Thank you for commenting this.
Description modified though it was already written:
"... the function nb_year should return n number of entire years needed to get a population greater or equal to p."
Ones passed, can have problems before solving with just sorting through different options, insted of making a deliberate decision.
For me it was statement to surpass (overcome, means greater than), then statement oposite to this in middle of desc. in "More generally given parameters:".
Imo, if there was less description, but it says only: "Tell how many years it will take to initial population (p0) to become greater or equal to goal (p), don't forget about fact, that people can't be added by "partitions", drop any not full ones through population increase." It will be clearer.
For me "surpass" is a synonym of "greater or equal" but I am not a native speaker. Do you have something better to propose?
I note that 117,209 people who passed the kata did'nt see a problem here (though some had problems elsewhere). Can you say with which input you make a mistake?
At top of desc. it says how many year for p0 become "greater or equal" to p.
And only after example it says that p is population to surpass.
So was my pain to solve it for 1 mistake for 205 other tests passed (50 instead of 51).
need to replace len(numbers) with (len(numbers) or 1) to cover empty arrays.