• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 04:13
CET 10:13
KST 18:13
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
ComeBackTV's documentary on Byun's Career !2Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win2Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump1Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15
StarCraft 2
General
Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win ComeBackTV's documentary on Byun's Career ! Did they add GM to 2v2? RSL Revival - 2025 Season Finals Preview Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament $5,000+ WardiTV 2025 Championship StarCraft2.fi 15th Anniversary Cup RSL Offline Finals Info - Dec 13 and 14! Tenacious Turtle Tussle
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 504 Retribution Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ How Rain Became ProGamer in Just 3 Months FlaSh on: Biggest Problem With SnOw's Playstyle [BSL21] RO8 Bracket & Prediction Contest BW General Discussion
Tourneys
[Megathread] Daily Proleagues [BSL21] RO8 - Day 2 - Sunday 21:00 CET [ASL20] Grand Finals [BSL21] RO8 - Day 1 - Saturday 21:00 CET
Strategy
Game Theory for Starcraft Simple Questions, Simple Answers Current Meta Fighting Spirit mining rates
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread PC Games Sales Thread Path of Exile Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas Survivor II: The Amazon Sengoku Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread YouTube Thread European Politico-economics QA Mega-thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
TL+ Announced Where to ask questions and add stream?
Blogs
How Sleep Deprivation Affect…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1439 users

Interesting maths problem

Blogs > MakkurtE
Post a Reply
1 2 3 Next All
MakkurtE
Profile Blog Joined July 2009
United States46 Posts
Last Edited: 2009-11-10 16:50:52
November 10 2009 16:49 GMT
#1
So i lurk an awful lot these days and really enjoy the puzzle/maths homework questions that pop up from time to time, so thought i'd share one.

A friend got asked the following during a job interview for an actuarial position:


"Someone gives you two identical and supposedly unbreakable eggs. You have access to a 50 storey building. You want to test whether the eggs are unbreakable or not. What is the minimum number of drops of eggs out of windows to allow you to find the lowest floor (if it exists) that the eggs break on."


I'm pretty sure it's a (relatively) common problem, that you could just google, but it's a nice one to try to figure out.

I'll provide spoilered vague hints if requested



=====



Bonus question:


"You have a large cube, made up of 1000 smaller cubes (10x10x10). You break off the top layer all over the surface of the cube. How many do you have left?"


btw that's a very simple puzzle, but they wanted to see the thought process behind getting to your answer, and asked him to reason it out loud.

*****
Opinions in the above post are less informed then they appear
gumbum8
Profile Blog Joined December 2008
United States721 Posts
November 10 2009 16:57 GMT
#2
+ Show Spoiler +
Well for the first one, I'd say one, because if you start with the top floor and you drop it and it doesn't break, then you know. I feel like that answer is a cop-out though...

And I have to study bio so I'll get back to you on the second one.
but really, has anyone REALLY been far even as decided to use even go want to do look more like?
OreoBoi
Profile Blog Joined December 2008
Canada1639 Posts
Last Edited: 2009-11-10 17:09:16
November 10 2009 16:59 GMT
#3
The second one seems to be 900 ice cubes

edit: whoops i misread the question
so ya its 8 ^3
Sadistx
Profile Blog Joined February 2009
Zimbabwe5568 Posts
November 10 2009 17:01 GMT
#4
"Someone gives you two identical and supposedly unbreakable eggs. You have access to a 50 storey building. You want to test whether the eggs are unbreakable or not. What is the minimum number of drops of eggs out of windows to allow you to find the lowest floor (if it exists) that the eggs break on."


One drop. If they are supposedly unbreakable and one of them breaks, I'll go find the someone who gave them to me and drop them off the 50 story building for being a liar, unless they tell me how tough they really are.

Bonus question - 8^3=512.
MakkurtE
Profile Blog Joined July 2009
United States46 Posts
November 10 2009 17:03 GMT
#5
I'll reply unspoilered to ya gumbum just to clarify things for everyone else too

Well for the first one, I'd say one, because if you start with the top floor and you drop it and it doesn't break, then you know. I feel like that answer is a cop-out though...


sure, if you drop it off the top and it doesn't break then you did it in one drop, but what if it does? then all you know that it breaks dropped from somewhere between 1 and 50 floors. likewise, you could just get lucky and find the floor on your first try.

the question is at least how many drops do you need to do to always be guaranteed to find the exact floor it will break from.
Opinions in the above post are less informed then they appear
Kiarip
Profile Joined August 2008
United States1835 Posts
Last Edited: 2009-11-10 17:08:09
November 10 2009 17:04 GMT
#6
#1

+ Show Spoiler +
I would say it's 6ish unless gumbum8's answer is actually right...

you start at 25th floor I think, and then if it doesn't break you go up, if it breaks you go down to either 37 or 12, and etc keep dividing stuff in half like binary search or w.e


edit: wtf you only get 2 eggs? OH... I see um... I don't get the question. I mean it could always be one if you mean minimum... but do you mean the minimum in worst case scenario? Then you'd have to throw it like 26ish times.

you throw the first egg off the 25th floor, and then if it breaks, you start dropping the second egg from the first floor and go one up until it breaks, but if ti doesn't break you start dropping it off 26th and up floors one by one until it breaks.


so 26 is the worst case scenario situation I think.



#2


+ Show Spoiler +
Eh well aren't you just left with a 8x8x8 cube? which is 512
Kau *
Profile Joined March 2007
Canada3500 Posts
Last Edited: 2009-11-10 17:08:09
November 10 2009 17:05 GMT
#7
Question 1 is 8? Similar to binary searching?

Question 2 is 1000 - 100 - 100 - 80 - 80 - 64 - 64 = 512

Edit: oh you get two eggs, then you need 26 drops because you can only go two floors at a time.
Moderator
MakkurtE
Profile Blog Joined July 2009
United States46 Posts
November 10 2009 17:07 GMT
#8
klarp

#1 - the answers not right. but more importantly - you only have 2 eggs. say you start at 25, and it breaks, and you go up to 37, and it breaks - then you're done. you only have 2 eggs

you will need to do maths to solve it

#2 yeah thats right. it was the logic they were looking for apparently. as in

+ Show Spoiler +
that you realise that you end up with an 8x8x8 cube, instead of just trying to count the cubes you took off
Opinions in the above post are less informed then they appear
illu
Profile Blog Joined December 2008
Canada2531 Posts
Last Edited: 2009-11-10 17:10:39
November 10 2009 17:08 GMT
#9
Since you got only two eggs, the only way to be sure is to take the first egg, and drop it once every three floors, in ascending orders. Say

1 -> 4 -> 7 -> 10 ...

Eventually your first egg will break. Say it happend at 37. Then you drop the other egg at 35th floor to see if it also breaks. If it breaks, then 35th is the lowest floor that will break the egg. If it does not, then try again at 36th.

EDIT: OK I found a problem with my solution. I will fix it later.
:]
Biochemist
Profile Blog Joined February 2009
United States1008 Posts
Last Edited: 2009-11-10 17:09:58
November 10 2009 17:08 GMT
#10
The second one is certainly 512, not 900. It would be 900 if you only took off the first layer on a single side.

I don't get the first one. Maybe there's a shortcut I'm not imagining, but you'd have to start at the 1st floor and go up one at a time. The minimum would be one drop, if they break while dropping them from the first floor. If you started at the top and they broke, you would know that they will break from 50 stories but won't know what the minimum is--hence starting from the bottom.

Edit: Illu is smarter than I am.
Kiarip
Profile Joined August 2008
United States1835 Posts
November 10 2009 17:09 GMT
#11
On November 11 2009 02:07 MakkurtE wrote:
klarp

#1 - the answers not right. but more importantly - you only have 2 eggs. say you start at 25, and it breaks, and you go up to 37, and it breaks - then you're done. you only have 2 eggs

you will need to do maths to solve it

#2 yeah thats right. it was the logic they were looking for apparently. as in

+ Show Spoiler +
that you realise that you end up with an 8x8x8 cube, instead of just trying to count the cubes you took off


got new answer for #1 in my original post!!! check it out
MakkurtE
Profile Blog Joined July 2009
United States46 Posts
November 10 2009 17:12 GMT
#12
@illu

that's one way to do it, but theres a far faster way to do it, and also be just as sure. it's not a trick question btw.
Opinions in the above post are less informed then they appear
LiAlH4
Profile Joined October 2007
New Zealand111 Posts
Last Edited: 2009-11-10 17:19:04
November 10 2009 17:14 GMT
#13
+ Show Spoiler +

10 drops I think

+ Show Spoiler +

Start at 10th floor, if it breaks drop second egg from first floor and work up to the 9th.
If it doesn't break, drop from the 19th, 27th, 34th, 40th, 45th, 49th


MakkurtE
Profile Blog Joined July 2009
United States46 Posts
November 10 2009 17:16 GMT
#14
got new answer for #1 in my original post!!! check it out


it's the worst case scenario alright. as in the minimum to be sure of every floor, whether thats the 1st or the 50th. you're getting slightly warmer though, although {your answer] is way too high.


Opinions in the above post are less informed then they appear
OreoBoi
Profile Blog Joined December 2008
Canada1639 Posts
November 10 2009 17:18 GMT
#15
On November 11 2009 02:08 Biochemist wrote:
The second one is certainly 512, not 900. It would be 900 if you only took off the first layer on a single side.

I don't get the first one. Maybe there's a shortcut I'm not imagining, but you'd have to start at the 1st floor and go up one at a time. The minimum would be one drop, if they break while dropping them from the first floor. If you started at the top and they broke, you would know that they will break from 50 stories but won't know what the minimum is--hence starting from the bottom.


Ya I screwed up that question, I'm in class so I wasn't reading the question too carefully X.X
I think the first one the logic is:
- Drop it from the 50th floor
- If it breaks, drop it from the first floor
- If it doesn't break, you have an unbreakable egg
- If it breaks on the 1st floor, the first floor is the lowest floor
- If it doesn't break on the 1st floor, then you drop it from the 25th floor
- If it breaks on the 25th floor, go to the 13th or 12th floor
- If it doesn't break on the 25th floor, go to the 37th or the 38th floor
etc.

Or you could cheat, and you throw it on the ground and it breaks (because it is an egg)
MakkurtE
Profile Blog Joined July 2009
United States46 Posts
Last Edited: 2009-11-10 17:20:06
November 10 2009 17:19 GMT
#16
@LiAIH4
+ Show Spoiler +
gg, took me aaaaaages to work it out. 10 is absolutely optimal. actually optimal is like 9.5 drops when you solve the equations, but you have to round it up obviously


@oreoboi
you only have 2 eggs. once 2 break, you're done
Opinions in the above post are less informed then they appear
Muff2n
Profile Blog Joined March 2009
United Kingdom250 Posts
November 10 2009 17:21 GMT
#17
It would take me 10 drops to be sure.
Dropping in this order (assuming no breakages):
10
19
27
34
40
45
48
Kiarip
Profile Joined August 2008
United States1835 Posts
November 10 2009 17:33 GMT
#18
Alright yeah you get an equation n + (n-1) + (n-2) + (n-3) +... + (n-k) = 50 and (n-k-1) + (n-k) = n

or something like that, you solve and you get approximate answer, then try around there and it turns out to be 10.
MakkurtE
Profile Blog Joined July 2009
United States46 Posts
November 10 2009 17:39 GMT
#19
solution:

+ Show Spoiler +

x^2 + x - 2(floors)=0 will solve for 2 eggs and any number of floors

in this case optimal is 9.xxxx, but you can't drop an egg 9 and a half times - so 10.

for the answer to be a perfectly round number the number of floors has to be a triangular number

i love the elegance of the method to get to the equation more then anything else really
Opinions in the above post are less informed then they appear
Kiarip
Profile Joined August 2008
United States1835 Posts
November 10 2009 17:58 GMT
#20
mine came out to be way different, but it gave a similar answer in the end =/ Since the approximations aren't exact there'd be a bunch of different equations that solve for this I think.

! Problem:

I remember solving this for so long, and I still dun remember if I actually finished it back when i was in high school:

For all integers 4x^2 + x = 3y^2 + y, prove that y-x is a perfect square.
1 2 3 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 2h 47m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 238
StarCraft: Brood War
Calm 7477
Jaedong 686
Shuttle 574
Bisu 416
Zeus 197
Sharp 193
PianO 162
EffOrt 110
Killer 89
Mong 85
[ Show more ]
Soma 59
910 46
Dewaltoss 44
soO 37
Shine 28
Shinee 25
Trikslyr25
yabsab 24
Noble 24
NaDa 22
Sacsri 18
Rush 17
Larva 16
GoRush 15
Pusan 11
Mind 10
Terrorterran 1
Dota 2
XcaliburYe290
League of Legends
C9.Mang0474
JimRising 418
Other Games
summit1g15490
ceh9387
Happy272
Fuzer 233
XaKoH 129
Mew2King71
Livibee23
Organizations
Other Games
gamesdonequick610
StarCraft: Brood War
lovetv 7
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 12 non-featured ]
StarCraft 2
• Berry_CruncH106
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos608
Upcoming Events
WardiTV 2025
2h 47m
MaNa vs Gerald
TBD vs uThermal
TBD vs Shameless
TBD vs MaxPax
ByuN vs TBD
Spirit vs ShoWTimE
OSC
5h 47m
YoungYakov vs Mixu
ForJumy vs TBD
Percival vs TBD
Shameless vs TBD
The PondCast
1d
WardiTV 2025
1d 3h
Cure vs Creator
TBD vs Solar
WardiTV 2025
2 days
OSC
2 days
CranKy Ducklings
3 days
SC Evo League
3 days
Ladder Legends
3 days
BSL 21
3 days
[ Show More ]
Sparkling Tuna Cup
4 days
Ladder Legends
4 days
BSL 21
4 days
Replay Cast
4 days
Monday Night Weeklies
5 days
Liquipedia Results

Completed

Acropolis #4 - TS3
RSL Offline Finals
Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
Slon Tour Season 2
WardiTV 2025
META Madness #9
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22

Upcoming

CSL 2025 WINTER (S19)
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.