Egg dropping puzzle

this is the link of the problem: https://www.geeksforgeeks.org/egg-dropping-puzzle-dp-11/

in the solution why we have taken Max():
res= max(eggDrop(n - 1, x - 1), eggDrop(n, k - x));

hello @aman17nov1999
we need to consider worst case and thats why we have taken maximum.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.