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.
Actually no, it doesn't because of the nested looping. Time complexity is the same: O(n^2), which is not ideal.
I hope so too, cuz the one at the top scares me. My solution looked more like this one.
But if height was a negative number and bigger than window, multiplying it by bounce would cause an infinite loop. I think.
I think height > 0 check needs to be in here, otherwise this function can break.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I was so close to this one. The issue was working with 'null'.
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
The input null/empty part is tricky.