HeadShot Puzzle - Interview Puzzle


Interview puzzles are critical-thinking and logical reasoning problems that make candidates use their problem-solving and analytical skills to find a solution. Interviewers prefer to ask these puzzles because it helps them understand your thought process, and your ability to solve complex problems using strategies, and high-order thinking. Usually, candidates applying for software development, data science, or engineering roles may encounter such puzzles.

Here is an Interview puzzle that is frequently asked in Job Interviews.

Puzzle Details

A lady got kidnapped by a gangster. The Gangster puts two bullets in consecutive order in an empty six-round revolver, spins it, points it at her head, and shoots. She is still alive. The Gangster then asked her,

“Do you want me to spin it again and fire or pull the trigger again right away?”

Q. Which option should be preferred? For each option, what is the probability that she’ll be shot?

Take your time to solve this puzzle before checking the solution. Do Share your approach in the comment section.





Solution :

The most important point here to consider is that the bullets were loaded adjacent to each other.

There are 6 ways to arrange the 6-round revolver with consecutive bullets. These are the possible scenarios that can be arranged with the 2 consecutive bullets: here "B" represents Bullet, and "x" represents empty.



But, the first shot went blank and hence the last two possibilities are of no use. we can easily eliminate these possibilities. Let me explain this in detail. 

as per the question, the gangster already shot once, and it is blank. This implies that in the combinations first value cannot be B it must be x which is empty. hence the combination starting with B must be eliminated. So, now the 4 possible arrangements of the consecutive bullets, considering the first blank attempt are these:

Now, looking at these possibilities, her odds of getting shot are 1/4 or 25%. (case: xBBxxx).

This is the only combination she will get shot, in all other combinations the immediate one is blank. But if he re-spins, then the following are the combinations



as we can see here, there are 2 possibilities out of 6 combinations where the lady will be shot.

looking at these possibilities, her odds of getting shot here is 2/6 or 33%.

So, she should prefer pulling the trigger again right away which is a 25% possibility of getting shot instead of re-spin which increases to 33% of getting shot. This is the solution to this puzzle.

watch the below video for a detailed explanation.



You may like these posts:

No comments:

Post a Comment