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.
Tried to run it with n=50000, and it didn't time out.
len(candidates) = 3395 (increases with O(log(n))
hamm = 2379126835648701693226200858624
Yes, this implies that we know the height of the big building, in which the child is playing on the nth floor. Why not say the roof?
It could say "A child plays with a ball on the nth floor of a big building at a height h which is known", but I don't see the point of having a parameter n when it isn't used anywhere.
Well, thats why it was said about not fulfilled conditions.
It is not the height of the building that we know but the height of the nth floor. Description says:
(float parameter "h" in meters, h > 0) .
Isn't the question formulated wrongly. Shouldn't the boy be playing on the roof of the building, and not on the nth floor? We only know the height of the building, and not which floor n he is on (or how high a floor is).