Why interviewers ask puzzles, and how to answer one
A puzzle in an interview is rarely about the answer. The interviewer wants to see you restate the problem, try a small case, notice a pattern and explain why your answer is optimal. A candidate who reasons aloud and reaches a near answer often scores better than one who blurts out a memorised number and cannot justify it.
- 1
Restate the puzzle
Repeat the constraints in your own words and ask one clarifying question if anything is ambiguous, such as whether the odd coin is heavier or lighter.
- 2
Try the smallest case
With 3 coins instead of 12, or 2 people instead of 4, the pattern often becomes obvious.
- 3
Say your idea before the details
For example: I will split the balls into three groups, because a balance has three outcomes.
- 4
Prove or check the answer
Explain why fewer steps cannot work, or walk through one case to show the method holds.
Weighing and measuring puzzles
You have 8 identical-looking balls; one is slightly heavier. With a two-pan balance, what is the minimum number of weighings to find it?
Two. Put 3 against 3 and keep 2 aside. If the pans balance, the heavy ball is among the 2 aside, and one more weighing of those two finds it. If one side is heavier, take its 3 balls and weigh 1 against 1; if they balance, the third is heavy. Each weighing has three outcomes, so splitting into three groups is the key insight.
You have 12 coins; one is fake and may be heavier or lighter. How many weighings on a balance are needed to find it and say whether it is heavier or lighter?
Three. Weigh 4 against 4. If they balance, the fake is in the remaining 4 and two more weighings against known genuine coins find it and its direction. If they tip, you know 8 suspects, each with a possible direction, and the second weighing mixes coins across pans so every outcome narrows the field to at most 3 cases, which the third weighing settles.
Ten bags each hold many coins. Genuine coins weigh 10 g, but every coin in one bag weighs 9 g. With one reading on a digital scale, how do you find the bad bag?
Take 1 coin from bag 1, 2 from bag 2, and so on up to 10 from bag 10, which is 55 coins. If all were genuine they would weigh 550 g. The shortfall in grams equals the number of the bad bag, because each light coin is 1 g short.
Two ropes each take exactly 60 minutes to burn, but they burn unevenly. How do you measure 45 minutes?
Light rope A at both ends and rope B at one end at the same moment. Rope A burns out in 30 minutes, however uneven it is. At that moment, light B's other end; its remaining 30 minutes of burn now take 15. When B finishes, 45 minutes have passed.
You have a 3-litre jug and a 5-litre jug and unlimited water. How do you measure exactly 4 litres?
Fill the 5-litre jug and pour into the 3-litre jug, leaving 2 litres. Empty the 3-litre jug and pour the 2 litres into it. Fill the 5-litre jug again and top up the 3-litre jug, which takes 1 litre. Exactly 4 litres remain in the 5-litre jug.
With a 4-minute and a 7-minute sand timer, how do you measure exactly 9 minutes?
Start both timers. At 4 minutes, flip the 4-minute timer. At 7 minutes, the 7-minute timer empties; flip it. At 8 minutes, the 4-minute timer empties, and the 7-minute timer has run 1 minute since its flip, so flip it again. That 1 minute of sand runs back, ending at exactly 9 minutes.
A worker must be paid one piece of a gold bar every day for 7 days, and you may cut the bar only twice. How do you do it?
Cut the bar into pieces of 1, 2 and 4 units. Day 1: give the 1. Day 2: give the 2 and take back the 1. Day 3: give the 1. Day 4: give the 4 and take back the 1 and 2. Days 5 to 7 repeat the pattern. Any total from 1 to 7 can be made from 1, 2 and 4, as in binary.
There are 1,000 sample vials and exactly one is contaminated. A test strip turns positive after one day if it touches any contaminated drop. What is the minimum number of strips to find the vial in one day?
Ten. Number the vials 0 to 999 in binary, which needs 10 bits because 2 to the power 10 is 1,024. Strip k gets a drop from every vial whose kth bit is 1. After a day, the pattern of positive strips spells out the contaminated vial's number in binary.
Crossing, switching and sequencing puzzles
Four people must cross a bridge at night with one torch. At most two can cross at once and a pair moves at the slower person's pace. They take 1, 2, 5 and 10 minutes. What is the shortest total time?
17 minutes. 1 and 2 cross (2 minutes), 1 returns (1), 5 and 10 cross together (10), 2 returns (2), and 1 and 2 cross again (2). The insight is sending the two slowest together so the 10-minute walk also covers the 5-minute one.
A farmer must ferry a wolf, a goat and a cabbage across a river, one at a time. The wolf eats the goat and the goat eats the cabbage if left alone together. How does he do it?
Take the goat across. Return alone and take the wolf across. Bring the goat back. Take the cabbage across, leaving it with the wolf. Return alone and take the goat across. The trick is that something may come back across the river.
Three switches outside a closed room control one bulb inside. You may enter the room only once. How do you find which switch controls the bulb?
Turn switch 1 on for ten minutes, then turn it off and turn switch 2 on. Enter the room. If the bulb is on, it is switch 2. If it is off but warm, it is switch 1. If it is off and cold, it is switch 3. The insight is using heat as a second signal.
100 doors are closed. Person 1 toggles every door, person 2 every second door, person 3 every third, up to person 100. How many doors are open at the end?
10. A door is toggled once for each of its factors. Factors come in pairs, so most doors are toggled an even number of times and end closed. Perfect squares have an unpaired factor, their square root, so they end open: 1, 4, 9 and so on up to 100, which is 10 doors.
You must find the 3 fastest of 25 horses using a track that races 5 at a time, with no timer. What is the minimum number of races?
Seven. Run 5 heats of 5. Race the 5 heat winners in a sixth race; its winner is the fastest overall. Only five horses can still be second or third: the second and third of the sixth race, the second and third from the overall winner's heat, and the second from the heat of the sixth race's runner-up. Race those five; the top two are second and third overall.
There are two doors, one to freedom and one to a dead end, each guarded. One guard always lies and one always tells the truth, and you do not know which is which. With one question to one guard, how do you choose?
Ask either guard: If I asked the other guard which door leads to freedom, which door would he point to? Then take the other door. The truthful guard reports the liar's wrong answer honestly, and the liar lies about the truthful guard's right answer, so both point to the wrong door.
How can you cut a round cake into 8 equal pieces with just 3 straight cuts?
Make two vertical cuts through the centre at right angles, giving 4 equal pieces. Then make one horizontal cut through the middle of the cake's height, splitting each quarter into a top and bottom piece. That gives 8 equal pieces.
You need two cubes with one digit on each face so that together they can show every date from 01 to 31. How is this possible with only 12 faces?
Both cubes need 0, 1 and 2, because 11 and 22 need two of the same digit and 0 must pair with 1 to 9. That uses six faces. The remaining six faces hold 3, 4, 5, 6, 7 and 8, three on each cube. It works because the 6 turned upside down serves as 9.
Counting and arithmetic puzzles
How many squares are there on a standard 8 by 8 chessboard?
204. Count by size: there are 64 squares of size 1, 49 of size 2, 36 of size 3, and so on down to 1 of size 8. The total is the sum of the square numbers 1 plus 4 plus 9 and so on up to 64, which is 204.
How many rectangles, including squares, are there on a chessboard?
1,296. A rectangle is fixed by choosing 2 of the 9 horizontal lines and 2 of the 9 vertical lines. 9C2 is 36, so the count is 36 times 36, which is 1,296.
Ten people meet and each shakes hands with every other person once. How many handshakes are there?
45. Each handshake is a pair of people, so the count is 10C2, which is 10 times 9 divided by 2. Equivalently, each person shakes 9 hands, giving 90, and every handshake was counted twice.
A knockout tournament has 100 players. How many matches are needed to find the winner?
99. Every match eliminates exactly one player, and all but one player must be eliminated. Byes in uneven rounds do not change this, which is why you do not need to draw the bracket.
How many times does the digit 1 appear when you write the numbers from 1 to 100?
21. In the units place, 1 appears in 1, 11, 21 and so on to 91, which is 10 times. In the tens place it appears in 10 to 19, another 10 times. The number 100 adds one more, giving 21.
A bat and a ball cost ₹110 together. The bat costs ₹100 more than the ball. How much does the ball cost?
₹5. If the ball is x, the bat is x plus 100, and 2x plus 100 is 110, so x is 5. The instinctive answer of ₹10 is wrong, because then the bat would cost ₹110 and the total would be ₹120.
5 machines make 5 widgets in 5 minutes. How long do 100 machines take to make 100 widgets?
5 minutes. Each machine makes one widget in 5 minutes. With 100 machines working in parallel, 100 widgets also take 5 minutes. The trap is assuming the time scales with the number of widgets.
A patch of lilies doubles in area every day and covers a lake in 48 days. On which day was half the lake covered?
Day 47. Because the patch doubles daily, it covered half the lake one day before it covered all of it. Working backwards from the end is the trick for any doubling puzzle.
A snail at the bottom of a 10 m well climbs 3 m each day and slips back 2 m each night. On which day does it get out?
Day 8. It gains 1 m net each full day, so after 7 days it is at 7 m. On day 8 it climbs 3 m to reach 10 m and is out before it can slip back. The trap is answering 10 days.
Two trains 100 km apart head towards each other at 50 km per hour each. A bird flies back and forth between them at 75 km per hour until they meet. How far does the bird fly?
75 km. The trains close the gap at 100 km per hour, so they meet in 1 hour. The bird flies for that hour at 75 km per hour. There is no need to sum the infinite zigzag.
Three friends pay ₹30 for a room. The manager refunds ₹5 through a helper, who keeps ₹2 and returns ₹1 to each friend. Each friend has now paid ₹9, which makes ₹27, plus ₹2 kept is ₹29. Where is the missing rupee?
No rupee is missing; the addition is wrong. The ₹27 the friends paid already includes the helper's ₹2, so it should be split as ₹25 for the room plus ₹2 kept. Adding the ₹2 again double counts it. The correct check is 25 plus 2 plus 3 refunded, which is 30.
A man has three daughters. The product of their ages is 36 and the sum equals the house number, which you can see but still cannot solve. He then says his eldest daughter likes chess. How old are they?
9, 2 and 2. Of the age triples with product 36, only 1, 6, 6 and 2, 2, 9 both sum to 13, which is why the house number was not enough. The mention of an eldest daughter rules out 1, 6, 6, where the two oldest are twins.
Probability puzzles
On a game show you pick one of three doors; a prize is behind one. The host, who knows where it is, opens one of the other doors to show nothing and offers a switch. Should you switch?
Yes. Your first pick is right with probability 1/3, so the prize is behind one of the other two doors with probability 2/3. The host always reveals an empty one, so switching wins exactly when your first pick was wrong, which is 2/3 of the time.
Three ants sit on the corners of a triangle and each walks along an edge to another corner, choosing a direction at random. What is the probability that no two ants collide?
1/4. Each ant has 2 choices, so there are 8 equally likely outcomes. They avoid each other only if all go clockwise or all go anticlockwise, which is 2 outcomes. 2 divided by 8 is 1/4.
A family has two children and at least one of them is a boy. What is the probability that both are boys?
1/3. The equally likely families are boy-boy, boy-girl, girl-boy and girl-girl. Knowing at least one is a boy removes girl-girl, leaving three cases, of which only one has two boys.
How many times in 12 hours do the hour and minute hands of a clock overlap?
11 times. The minute hand gains a full lap on the hour hand every 12/11 hours, which is about 65.45 minutes. In 12 hours that fits 11 overlaps, because the overlap expected near 11 to 12 happens exactly at 12.
In a group of 23 people, is it more likely than not that two share a birthday?
Yes, slightly. Ignoring leap days, the probability that all 23 birthdays differ is 365/365 times 364/365 and so on down to 343/365, which works out to about 0.49. So the chance of at least one shared birthday is about 0.51.
You toss a fair coin until it shows heads. What is the expected number of tosses?
Two. Each toss succeeds with probability 1/2, so the number of tosses follows a geometric pattern with mean 1 divided by 1/2, which is 2. You can also write E equals 1 plus half of E, which gives E equals 2.
What interviewers and the AI panel check in a puzzle round
- Clarifying questions: did you confirm the constraints before diving in?
- Structure: did you say your approach before the details, such as three groups for a balance?
- Small cases: did you test a simpler version to find the pattern?
- Optimality: can you explain why fewer steps or a lower number is impossible?
- Composure: when stuck, did you narrate what you know instead of going silent?
The ExamPilot AI interviewer listens for the same signals when you practise. Combine puzzle practice with logical reasoning questions with answers and the timed placement logical reasoning test, which covers arrangements and other written puzzle types.
Two-week puzzle practice plan
- 1
Days 1 to 4: weighing and measuring
Solve the weighing, rope, jug and timer puzzles from scratch. Write the three-outcome idea and the binary idea in your own words.
- 2
Days 5 to 8: crossing and counting
Do the bridge, river, door and counting puzzles. For each, write one sentence on why the answer cannot be smaller.
- 3
Days 9 to 11: probability
Work the probability puzzles by listing outcomes. Then explain the game-show answer to a friend until they agree.
- 4
Days 12 to 14: speak them
Pick five puzzles a day and explain each aloud in under three minutes, as you would to an interviewer.
Frequently asked questions
- Which companies ask puzzles in placement interviews?
- Puzzles are most common in interviews for product companies, analytics and consulting roles, and in some IT services technical rounds. Many interviewers use one puzzle to see how a fresher thinks under mild pressure. The exact practice varies by interviewer, so prepare for at least one puzzle in any technical round.
- What if I already know the answer to a puzzle?
- Say so honestly, then explain the reasoning as if you were solving it, because the interviewer is judging your explanation. Pretending to discover a memorised answer is usually obvious. Many interviewers will then ask a variant, so understanding beats memory.
- How should I explain a puzzle answer in an interview?
- Restate the problem, mention any assumption, state your key idea in one sentence, walk through the steps and finish with why the answer is optimal. Speak while you think. A clear, structured explanation of a near answer often impresses more than a silent correct one.
- Are these puzzles enough for placement preparation?
- They cover the classic families: weighing, measuring, crossing, counting and probability. Pair them with logical reasoning and quantitative aptitude practice for the written test, and with technical subjects such as DBMS, operating systems and networks for the technical round.
- How long should I spend on a puzzle before reading the answer?
- About five minutes. Struggle builds the pattern recognition that interviews reward. If you are stuck, read only the first line of the answer, close it, and finish on your own.
Practise out loud
Practise explaining puzzles aloud
The AI interviewer runs a campus technical round, listens to how you structure your reasoning, and points out where your explanation lost the thread.
Big tech, Big 4 & IB campus · Big tech SDE / SDE intern (Amazon, Microsoft, Google, Flipkart, Swiggy, Zepto)
