This doesn’t work with only 2 eggs available. What if egg1 breaks at 50 and egg2 breaks at 25? Out of eggs and no solution.
You might have gotten an easier problem where you get an unlimited amount of eggs, then your solution is optimal
This doesn’t work with only 2 eggs available. What if egg1 breaks at 50 and egg2 breaks at 25? Out of eggs and no solution.
You might have gotten an easier problem where you get an unlimited amount of eggs, then your solution is optimal
Written by