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.
The description bothers me, because playing ascending chromatic scales you would only use your thumb, index, and middle fingers.
No, the first drop will be at a level that provides you have a full coverage of all floors below in the worst case scenario i.e. all egs will brake one after another.
If the first egg brakes, the seacond drop is not in the middle of all levels below. It's closer to the bottom, than the top (level the fist egg broke). So, the spacing is not halved at every attempt as one may think.
total tries
The random tests should be adjusted to test the time complexity instead of execution time.
Also, the current fixture is written in an atrociously bad manner, and could do with rewriting in the whole.
As I said, your solution is inefficient. It can be at most 1.5 times slower to pass the tests while yours one is 2.7 times slower (in the worst case).
This comment is hidden because it contains spoiler information about the solution
do you realize that the array isn't sorted?
Your solution is inefficient.
I'm not failing any tests, but I'm still timing out. Can anyone explain to me how that would be?
I'm essentially running a recursive binary search.
This comment is hidden because it contains spoiler information about the solution
Does m = total tries or tries per egg?
I did a console.log in each function, and they both show up on every test.
Print a message which would specify what function is being run.
I'm having trouble with the random tests. Everything I test myself works fine, but the randoms fail about half the time.
I'm trying to figure out if it's the Encode or Decode function messing up, but it looks like they're both being run on all the randoms. Any tips for how to test this?