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.
I had the same issue at first. Did you include: " if( h <= 0 || bounce >= 1 || bounce <= 0 || window >= h) return -1" I think my innefficiency at first was coming from not including it and the code getting stuck on a test case that I didnt check for in the above line of code.
I tried this exact solution and the server responded that the algorithm was way too inefficient. I understand it's not the optimal approach, but is the performance of this snippet so so so terrible?