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.
Mark your comment as having spoiler content.
This comment is hidden because it contains spoiler information about the solution
The implementations need to be distinct because you may wish to use jmp within a funcion without messing up your return :)
the difference is
ret
;)I dont get the difference between
jmp
andcall
. How are they different?jmp lbl
: Jumps to the labellbl
call lbl
: Call to the subroutine identified bylbl
So for instance
jmp func
andcall func
should do the same thing right? Iffunc
had aret
, the instruction pointer would return to thejmp
orcall
respectively.Thinking about a simpler case makes it easier to understand:
with 1 egg and M tries, you can test up to floor M. Even if it doesn't crack on that floor, M would be the answer
This comment is hidden because it contains spoiler information about the solution
I'm having troubles understanding this kata.
All we get is N eggs, and max M tries. How am I supposed to know when do I know that an egg cracks?
Am I completely misunderstanding it?
You know this test is fucked when you just rerun the tests until you aren't fucked by floating-point errors.
If you guys fail on 1 or 2 tests, keep submitting. I did that and after the 4th of 5th try I passed all.