Nokia

  www.nokia.com
Work in HR? Unlock Free Profile

Nokia Software Engineer Interview Question

I interviewed in Chicago, IL and was asked:
"Logic puzzle from Die Hard (3 gal bucket, 5 gal bucket, make 4 gals)"
Tags: logic
Add Tags [?]
Answer

Part of a Software Engineer Interview Review - one of 195 Nokia Interview Reviews

Answers & Comments

2
of 2
votes
add 3 gal to 5 gal, add from 3 gal to 5 gal tank already filled to 3. Left with 1 gal in 3gal tank. Empty 5gal and fill with 1 gal. Fill 3gal and add to 1 gal in 5gal tank. 4 gal total.
- Anonymous on Sep 16, 2012
0
of 1
vote
Even simpler:
fill the 3 gal from the 5 gal full - it will be 2 gal left in the 5 gal tank.
Spill the 3 gal contents and put the 2 gal from the other tank.
Fill up the 5 gal then from it fill up the 3 gal tank (1 gal will only fit).

END
The 5 gal tank now contains 4 gal
- Anonymous on Sep 4, 2013

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.