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.
How it is not broken? The requirement is "How many years does the town need to see its population greater than or equal to p"
if population rounded down is 1214 then it is equal to p which is 1214 right? And since the question is greater than OR EQUAL, then the test is broken.
The requirement is "How many years does the town need to see its population greater than or equal to p"
if p0 rounded down is 1214 then it is equal to p which is 1214 right? And since the question is greater than OR EQUAL, then the test is broken.
The method returns an int, and Math.Ceiling returns a double, you'll need to convert them into int.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
1: Please read the description:
1 is not greater than 1.
2: It doesn't require so much optimization, 6 kyu is fine.
This comment is hidden because it contains spoiler information about the solution