Bank of America

www.bankofamerica.com
www.bankofamerica.com

## Interview Question

Quantitative Developer Interview Atlanta, GA

# How to measure 9 minutes using only a 4 minute and 7 minute

hourglass
Tags:
puzzle

3

http://www.abc.net.au/science/surfingscientist/pdf/conundrum9.pdf

Interview Candidate on Jul 31, 2009
0

http://www.ronbarnette.com/Zeno/result7.html

bluescrubbie on Jan 11, 2010
9

The key is understanding that you will have to use the two hourglasses together. Since this problem could be asked in many ways using different values for the hourglasses and the total amount of time, it's more important to understand how you use the tools rather than memorize a specific example. The question is used to determine those who can apply their knowledge to solve problems vs. those who memorize answers "from the book".

Start both timers. After four minutes, the four-minute timer will have expired and the seven-minute timer will have three minutes remaining. Flip the four minute timer over. After seven minutes, the seven-minute timer will have expired and the four-minute timer will still have one minute left. Flip the seven-minute timer over. After eight minutes, the four-minute timer will have expired for the second time. The seven-minute timer will have accumulated one minute after it's last flip. Flip over the seven-minute timer and when it expires nine minutes will have elapsed.

For extra measure, you can always throw in something like, "assuming the timers can be flipped over nearly instantly..."

Tim on Jan 13, 2010
2

I think you made this much more complicated then it needed to be. Just flip the 7 minute hour glass, when it is done, flip the 4 minute, when you see the four minute is half way done you have 9 minutes, 7 + 2 = 9. Much easier yes?!

T\$ on Jan 14, 2010
5

Start both timers together.
When the 4 minute timer is done, flip it. 7 minute timer will have 3 minutes left.
When the 7 minute timer is done, the 4 minute timer will have 1 minute left.
Now you can count to 9 minutes by simply leaving the 4 minute to expire (1 min), flip it and let it expire (4 min), flip it again and let it expire (4 min). 1 + 4 + 4 = 9

J on Jan 18, 2010
0

By trying unsuccessfully to show how smart he is, T\$ flunked the interview question. The task is to measure nine minutes, not to guess.

ultraman on Jan 18, 2010
0

ultraman: all measurement systems and techniques are have an inherent accuracy and precision (or repeatability and reproduceability), so the important thing is to understand the level of accuracy and precision required, and know which technique will meet the level required.

The most important thing in business is not running off to do the task you've been asked with a tool you have handy, but understanding the reason for completing the task, and knowing how the output from your work will be used by others, and how the accuracy and precision will impact of others down the value chain.

rd on Jan 20, 2010
0

Dodging the question never works, rd. Tim is correct.

d-bag on Jan 20, 2010
0

http://brainteaserbible.com/interview-brainteaser-hourglass-puzzle

JDizz on Jun 13, 2011
0

Actually, I agree with #T\$. Ultraman and d-bag, the goal is to get the job done the most efficient and accurate way. The original question says it has to get done within 9 minutes as well. So you turn the 7 min timer over. While the seven minute timer is going, you take a measurement of the length of the 4 min timer, with the width of your thumb. Whatever number of thumb widths it is, divide it by 2 and that will (very accurately) give you the half way point on the hourglass which will equal to 2 minutes. Once the seven minute hourglass is done, flip the 4 minute timer. Once the 4 minute timer hits the halfway point you marked, you accurately measured 9 minutes.

jocean on Dec 27, 2011
1

1st timer 2nd timer time count
4 7...................start both timers
3 6................. 1min
2 5..................2mins
1 4..................3mins
0(flip) 3..................4mins completed
4 3..................4mins(assuming flip takes no time ideally)
3 2..................5mins
2 1..................6mins
1 0(flip)..........7mins
1 7..................7mins(again ideal flip)
0 6..................8mins(flip 2nd timer to count 1min)
0(as it is) 7..................9mins...

Prawesh on Jan 24, 2012
1

The gist of this problem is that the only way to get an exact time is by having an hourglass empty out completely when you declare 9 minutes are reached.

So let's take a holistic approach: the most time we can count using ONE of the hourglasses is 8 minutes: by starting the 4-minute hourglass, flipping it, then letting it go for another 4-minutes. Let's say we start both the 4-minute and the 7-minute hourglass at the same time. The 7-minute hourglass runs out before 8-minutes are up, so we flip it. When 8-minutes are up (measured by the 4-minute hourglass), we know 1 minute worth of sand has deposited since the 7-minute hourglass was flipped. So now flip that sand upside and down and let it drain completely, and we've reached 9 minutes.

James on Dec 27, 2012
0

start 7 and 4 , flip 4 while 4 is gone but 7 is working , when 7 is gone , we have 1 min in 4 glass , start the timer , do 4 glass twice to count another two 4 mins : 1+ 4+ 4=9

4-4, 7-4 4
4-3 7-3 3
1-1 start timer
4
4 end timer

henry on Oct 17, 2014