Technical Interview

Home
Technical Interview
Interview Process
Introduction Questions
Quantitative Problems
Google & Microsoft
Algorithms
Object Oriented
C/C++ Questions
Java Questions
Data Structures
Fundamental Questions
Puzzles
Resume Tips
Added Recently
Links
Contact Us
Submit Question/Answer

Russian Roulette

You are in a game of Russian Roulette with a revolver that has 3 bullets placed in three consecutive chambers. The cylinder of the gun will be spun once at the beginning of the game. Then, the gun will be passed between two players until it fires. Would you prefer to go first or second?





   

Solutions:

 

Label the chambers 1 through 6. Chambers 1 through 3 have bullets and chambers 4 through 6 are empty. After you spin the cylinder there are six possible outcomes:

1. Chamber 1 is fired first: Player 1 loses
2. Chamber 2 is fired first: Player 1 loses
3. Chamber 3 is fired first: Player 1 loses
4. Chamber 4 is fired first: Player 2 loses (First shot, player 1, chamber 4 empty. Second shot player 2, chamber 5, empty. Third shot player 1, chamber 6 empty. Fourth shot player 2, chamber 1 not empty.)
5. Chamber 5 is fired first: Player 1 loses (First shot, player 1, chamber 5 empty. Second shot player 2, chamber 6, empty. Third shot player 1, chamber 1 not empty.)
6. Chamber 6 is fired first: Player 2 loses (First shot, player 1, chamber 6 empty. Second shot, player 2, chamber 1, not empty)

Therefore player 2 has an 4/6 or 2/3 chance of winning.