# Coconut Breaking Puzzle [duplicate]

You have two coconuts and you want to find out how high they can be dropped from a 100 story building before they break. But you only have \$1.40 and the elevator costs 10 cents each time you ride it up (it's free for rides down).

How can you drop the coconuts to guarantee you will find the lowest floor they will break at, while starting and ending at floor 1?

Note: They break when dropped from the same height and they don't weaken from getting dropped.

• this is from my book so credit goes to Charles, the writer of the book + I did not copy it! Feb 8, 2018 at 18:15
• This looks more like a mathematics or calculation-puzzle than a riddle puzzle. Sure you got the tagging right? Feb 8, 2018 at 18:24
• yea its a math-puzzle but a puzzle! ad not really matha puzzle. now the tags ok? Feb 10, 2018 at 15:01

Starting from the bottom up, drop the first coconut on floors:

15, 28, 40, 51, 61, 70, 78, 85, 91, 96, and 100, stopping when it breaks.

Then, drop the second coconut

Starting at the floor just above the highest floor where the coconut didn't break. So, if the first coconut broke on floor 70, start the second one from floor 62.

You will always have enough cash to test it this way because

The number of floors between where you test the first coconut is equal to the number of trips you'll have left after the first one breaks. For example, if the lowest floor where the coconut breaks is floor 39, you'll use 3 drops to find that it's somewhere between 28 and 40, and 11 drops to find the exact floor that it's at. At most there will be 14 drops, which is what you have enough cash to test.

• If floor 14 is the last survivable drop, your method will run out of cash before finding it. You're one off; see, e.g. Dinosaur egg drop for a working solution.
– Rubio
Feb 8, 2018 at 18:34
• @Rubio You start on the first floor, so it costs nothing to test there.
– Apep
Feb 8, 2018 at 18:35
• @Apep Oh. yeah, good point. :)
– Rubio
Feb 8, 2018 at 18:36