Hi there, the solution states that “If we are given c+1 cases and d drops we can start at floor F(c, d-1) + 1 and drop a case”
I don’t fully understand why we should start at floor F(c, d-1) + 1, can anyone explain?
Thanks!
Hi there, the solution states that “If we are given c+1 cases and d drops we can start at floor F(c, d-1) + 1 and drop a case”
I don’t fully understand why we should start at floor F(c, d-1) + 1, can anyone explain?
Thanks!
The reason we start at F(c, d-1) + 1 because we want to reuse the result fro F(c, d-1). This is actually the reason we think it is DP problem.