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.
Worst description i've ever read. sorry.
This comment is hidden because it contains spoiler information about the solution
Looks like there is wrong mark in description in maxmimum word
assume we have 2 eggs and 4 try
from what i understand, the decision tree behind the answer is that
the answer is 9
but if it did not break at 3 or 6 or 8, we know its 1 above it since we already tested 2 above it
so the decision tree should be
the answer should be 12
im not sure if i misunderstand it or i should put it into issue
Rust translation
D translation
Rust translation.
I got a question... I know there are some different ways somenone can solve this problem... I choose the dynamic programming just to practise it. Despite the fact that, I follow very carefully the theory and some articles I always take time execution error. Is there any way to solve this problem using dynamic programming or i should look for another way to approach the problem?
This seriousTests case is killing me. I can't figure out how to optimize my solution enough to pass.
I've got the obvious case of m <= n covered to knock out half the calculations.
I've also got m - n == 1, m -n ==2 and m = 2n + 1 to knock out more calculations but I cannot figure out how to reduce the calculations when m is much greater than n.
Can someone give me a hint?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Description code blocks made only for haskell, missing other languages.
I have no idea how to get 105 out of 2 eggs and 14 tries. Is it allowed to give some explanation?
Question says: target floor can be any floor between 1 to this maximum height?
Some of the answers are '0'
This doesn't make any sense. For the case where you have no eggs, the max height should be 1.
Either that or the target floor should be any floor between 0 and the max height.
its too vague, could you please add another example (below 7 eggs 20 tries)
i get 105 for 14 tries 2 eggs but for 7 eggs and 20 tries, i get a little more than 137979,
i tested some cases and it seems to work.
could it be that 137979 is not the actual maximum? maybe the boundaries(where an egg, each try is supposed to be dropped from) werent counted?
Loading more items...