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.
That is as a result of an infinite loop. I guess you are dividing the height by the bounce height; that will just keep increasing the height and will never taminate. So multiply it instead (h * bounce)
Do you test for the condition mentioned?
i have the same problem in js
Symantically speaking, shouldn't bounce = 0 is a valid condition if his greater than window. (Ball will be seen once).
564 guys passed the C kata (see the top of the page). Your code is too slow.
This comment is hidden because it contains spoiler information about the solution