Then i would go to floor 25 or 75 depending on the first outcome and drop another egg.
First floor drop egg.
This is a simple way to make an egg never crack when it drops.
Two cases arise 1 if egg breaks we have one egg left so we need three more trials.
The physical properties of the ideal egg is such that it will shatter if it is dropped from floor n n n or above and will have no.
K 10 output.
2 if egg does not break we try next from 7 th floor.
If it breaks i would know the solution is somewhere among floors 0 49 if not then i would test for floors 51 to 100.
We can notice that if we choose 4th floor as first floor 7 th as next floor and 9 as next of next floor we never exceed.
I hope you enjoy the video and learn something new like i did when i made it.
Feel free to share wi.
Good for school projects.
I would go first to floor 50 and drop an egg.
You need to figure out the highest floor of a 100 storey building an egg can be dropped without breaking.
In a toy example there is a tower of n n n floors and an egg dropper with m m m ideal eggs.
4 we first try from 4 th floor.
Again two cases arise.
5 designs guaranteed to win 1st place or your money back.
Eggs can be very hard or very fragile means it may break if dropped from the first floor or may not even break if dropped from 100th floor.
I could break all 8 eggs floor 0 or none floor 100.