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.
Agreed, while cleaver the longer term readability of this method seems to be less than ideal.
This comment is hidden because it contains spoiler information about the solution
This is a clever way of using recursion to make this a one-liner, but at the cost of veryfying initial conditions (which may end up in -1) every time ball bounces :(
This comment is hidden because it contains spoiler information about the solution
THis is why the ruby standard library is so fantastic!
I see. Thank you!
It's because if you type something non-spoiler in a solution, people can see it on the dashboard.
do I use a spoiler flag on solutions? this is not a discourse. I did it anyway.
This comment is hidden because it contains spoiler information about the solution
Use spoiler flag, please.
This comment is hidden because it contains spoiler information about the solution
But I think complexity is n^2...
Hi. Why'd you add 2? I know that the person looking out from the window is going to see the ball
falling down so that's 1, but I'm not sure when the second sighting would be.
ALso, how does this not eventually return -1? That is because h is getting smaller and smaller the bouncingBall is called.
Plz help
Thnx
I think this is more of a suggestion vs something keeping this in Beta.
It is a beginner white problem.
Loading more items...