Skip to content
Work Free practice Coding course Blog Method Results Why me About Enquire Book a call

Practice · Quant prep · Brainteasers

Brainteasers interview questions

95 questions with worked solutions. Counting, pigeonhole, weighing and logic puzzles, with the short argument that cracks each.

24 easy · 48 medium · 23 hard · Question type reported at: SIGDRWFive Rings

Sit the brainteaser round: 8 questions, easy to hard Practise timed: 30 questions · 75s each All Quant prep topics


1 Easy Type asked atSIGDRW
What is the angle between the hour and minute hands of a clock at 3:15?
Show answer
Answer: 7.5∘7.5^\circ
The minute hand is at 90∘90^\circ. The hour hand has moved a quarter of the way from 3 to 4: 90∘+14⋅30∘=97.5∘90^\circ+\tfrac14\cdot30^\circ=97.5^\circ. Difference 7.5∘7.5^\circ.
2 Medium Type asked atSIGDRW
How many times do the hour and minute hands of a clock overlap in 12 hours?
Show answer
Answer: 1111
The minute hand gains one full lap on the hour hand every 1211\tfrac{12}{11} hours, so it laps it 11 times in 12 hours.
3 Medium Type asked atSIGDRW
100 lockers start closed. On pass kk (k=1,…,100k=1,\dots,100) you toggle every kk-th locker. How many are open at the end?
Show answer
Answer: 1010
Locker nn is toggled once per divisor of nn. It ends open iff it has an odd number of divisors, i.e. nn is a perfect square: 1,4,…,1001,4,\dots,100, ten lockers.
4 Easy Type asked atSIGDRW
How many trailing zeros does 100!100! have?
Show answer
Answer: 2424
Count factors of 5: ⌊100/5⌋+⌊100/25⌋=20+4=24\lfloor100/5\rfloor+\lfloor100/25\rfloor=20+4=24.
5 Hard Type asked atSIGDRW
25 horses, a track that races 5 at a time, no stopwatch. What is the minimum number of races needed to find the three fastest?
Show answer
Answer: 77
Five heats, then a race of the five winners. Only five horses can still be in the top three: the second and third of the winners' race, the second and third from the overall winner's heat, and the second from the runner-up's heat. A seventh race among those five settles 2nd and 3rd.
6 Hard Type asked atSIGDRW
With two identical eggs and a 100-storey building, what is the minimum number of drops that guarantees finding the highest safe floor?
Show answer
Answer: 1414
With dd drops you can cover d+(d−1)+⋯+1=d(d+1)2d+(d-1)+\dots+1=\tfrac{d(d+1)}2 floors. The smallest dd with d(d+1)2≥100\tfrac{d(d+1)}2\ge100 is 14: drop from 14, 27, 39, ….
7 Hard Type asked atSIGDRW
12 coins, one counterfeit that is either heavier or lighter (unknown). With a balance scale, what is the minimum number of weighings to find it and say whether it is heavy or light?
Show answer
Answer: 33
There are 24 possibilities and each weighing has 3 outcomes, so at least 3 are needed (33=27≥243^3=27\ge24), and a careful 4-4-4 scheme achieves it.
8 Easy Type asked atSIGDRW
10 people each shake hands once with every other person. How many handshakes?
Show answer
Answer: 4545
(102)=45\binom{10}{2}=45.
9 Medium Type asked atSIGDRW
How many squares of all sizes are there on a standard 8×88\times8 chessboard?
Show answer
Answer: 204204
There are (9−k)2(9-k)^2 squares of side kk: ∑k=18k2=204\sum_{k=1}^{8}k^2=204.
10 Medium Type asked atSIGDRW
How many rectangles of all sizes (including squares) are there on an 8×88\times8 chessboard?
Show answer
Answer: 12961296
Choose 2 of the 9 horizontal lines and 2 of the 9 vertical lines: (92)2=362=1296\binom92^2=36^2=1296.
11 Easy Type asked atSIGDRW
What is 1+2+⋯+1001+2+\dots+100?
Show answer
Answer: 50505050
Pair 1+100, 2+99,…1+100,\ 2+99,\dots: 50 pairs of 101.
12 Medium Type asked atSIGDRW
What is the last digit of 720267^{2026}?
Show answer
Answer: 99
Last digits of powers of 7 cycle 7,9,3,17,9,3,1. 2026≡2(mod4)2026\equiv2\pmod4, so the last digit is 9.
13 Easy Type asked atSIGDRW
A bat and a ball cost £1.10 together. The bat costs £1 more than the ball. How much is the ball, in pence?
Show answer
Answer: 55p
b+(b+1)=1.10b+(b+1)=1.10 gives b=0.05b=0.05. The intuitive answer, 10p, would make the bat £1.10.
14 Easy Type asked atSIGDRW
A patch of lilies doubles in size every day and covers a lake on day 48. On which day did it cover half the lake?
Show answer
Answer: Day 4747
It doubles to full on the last day, so it was half the day before.
15 Medium Type asked atSIGDRW
How many distinct arrangements are there of the letters of MISSISSIPPI?
Show answer
Answer: 34,65034{,}650
11!4! 4! 2!=34,650\dfrac{11!}{4!\,4!\,2!}=34{,}650 (I, S four times each; P twice).
16 Easy Type asked atSIGDRW
How many diagonals does a regular decagon have?
Show answer
Answer: 3535
n(n−3)2=10⋅72=35\dfrac{n(n-3)}{2}=\dfrac{10\cdot7}{2}=35.
17 Medium Type asked atSIGDRW
One of 1000 bottles is poisoned. Test strips show a result only after a day, and you have one day. What is the minimum number of strips?
Show answer
Answer: 1010
Label bottles in binary with 10 bits (210=1024≥10002^{10}=1024\ge1000). Strip ii tastes every bottle whose bit ii is 1. The pattern of positive strips spells the poisoned bottle's number.
18 Medium Type asked atSIGDRW
100 ants are placed on a 1-metre stick, each walking left or right at 1 m/min. When two meet, both reverse. What is the longest time until every ant has fallen off?
Show answer
Answer: 11 minute
Swapping labels, a collision is the same as the ants passing through each other. So each "ant" just walks straight off, taking at most 1 minute.
19 Easy Type asked atSIGDRW
Two trains 100 miles apart approach each other at 50 mph each. A fly flies back and forth between them at 75 mph until they meet. How far does it fly, in miles?
Show answer
Answer: 7575
They meet after 1 hour; the fly flies for 1 hour at 75 mph. No series needed.
20 Medium Type asked atSIGDRW
Writing out the integers from 1 to 100, how many times do you write the digit 7?
Show answer
Answer: 2020
Ten times in the units place (7, 17, …, 97) and ten in the tens place (70–79).
21 Medium Type asked atSIGDRW
Three boxes are labelled Apples, Oranges and Mixed, and every label is wrong. What is the fewest fruits you must draw (from boxes of your choice) to relabel all three correctly?
Show answer
Answer: 11
Draw from the box labelled Mixed. It must be all one fruit, say apples. Then the box labelled Oranges cannot be oranges or apples, so it is Mixed, and the last box is Oranges.
22 Easy Type asked atSIGDRW
A drawer holds 10 black and 10 white socks. In the dark, how many must you take to be sure of a matching pair?
Show answer
Answer: 33
Pigeonhole: with two colours, any three socks include two of the same colour.
23 Easy Type asked atSIGDRW
How many cards must you draw from a standard deck to be sure of two of the same suit?
Show answer
Answer: 55
Four could all differ; the fifth must repeat a suit.
24 Easy Type asked atSIGDRW
How many people must be in a room to guarantee two share a birth month?
Show answer
Answer: 1313
12 months, so 13 people force a repeat.
25 Easy Type asked atSIGDRW
How many 1s are in the binary representation of 255?
Show answer
Answer: 88
255=28−1=111111112255=2^8-1=11111111_2.
26 Easy Type asked atSIGDRW
What is the sum of the interior angles of a hexagon, in degrees?
Show answer
Answer: 720∘720^\circ
(n−2)⋅180∘=4⋅180∘(n-2)\cdot180^\circ=4\cdot180^\circ.
27 Easy Type asked atSIGDRW
How many zeros does 210⋅582^{10}\cdot5^{8} end in?
Show answer
Answer: 88
21058=22⋅108=4⋅1082^{10}5^8=2^2\cdot10^8=4\cdot10^8.
28 Medium Type asked atSIGDRW
A 3×3×33\times3\times3 cube is painted on the outside and cut into 27 unit cubes. How many have exactly two painted faces?
Show answer
Answer: 1212
Exactly-two means the middle of an edge: one per edge, 12 edges.
29 Medium Type asked atSIGDRW
A 4×4×44\times4\times4 painted cube is cut into 64 unit cubes. How many have no paint?
Show answer
Answer: 88
The unpainted core is 2×2×22\times2\times2.
30 Hard Type asked atSIGDRW
100 prisoners stand in a line, each seeing everyone in front. Each gets a black or white hat and, from the back, calls a colour. With the best agreed strategy, how many are guaranteed to survive?
Show answer
Answer: 9999
The last prisoner calls the parity of the black hats in front (their own survival is a coin toss). Every other prisoner can then deduce their own hat from that parity and the calls behind them.
31 Medium Type asked atSIGDRW
In how many ways can you climb 10 stairs taking 1 or 2 steps at a time?
Show answer
Answer: 8989
f(n)=f(n−1)+f(n−2)f(n)=f(n-1)+f(n-2) with f(1)=1,f(2)=2f(1)=1,f(2)=2: Fibonacci, giving f(10)=89f(10)=89.
32 Easy Type asked atSIGDRW
What is 1+2+4+⋯+291+2+4+\dots+2^9?
Show answer
Answer: 10231023
A geometric series: 210−12^{10}-1.
33 Medium Type asked atSIGDRW
How many shortest lattice paths go from one corner of a 4×44\times4 grid of squares to the opposite corner?
Show answer
Answer: 7070
Any shortest path is 4 rights and 4 ups in some order: (84)=70\binom84=70.
34 Easy Type asked atSIGDRW
A single-elimination tournament has 64 players. How many matches are played?
Show answer
Answer: 6363
Every match eliminates exactly one player, and 63 must be eliminated.
35 Easy Type asked atSIGDRW
A snail climbs 3 m up a 10 m well each day and slips back 2 m each night. On which day does it get out?
Show answer
Answer: Day 88
After 7 days and nights it is at 7 m; on day 8 it climbs the last 3 m before it can slip.
36 Hard Type asked atSIGDRW
100 people stand in a circle, numbered 1 to 100. Starting with 2, every second person still standing is removed, going round and round. Which position survives?
Show answer
Answer: 7373
For the Josephus problem with every second person removed, write n=2m+ℓn=2^m+\ell; the survivor is 2ℓ+12\ell+1. Here 100=64+36100=64+36, so 2(36)+1=732(36)+1=73.
37 Medium Type asked atSIGDRW
Nine balls look identical but one is heavier. With a balance scale, what is the minimum number of weighings that always finds it?
Show answer
Answer: 22
Weigh 3 against 3. The heavy ball is in the heavier group, or in the third group if they balance. One more weighing of 1 against 1 settles it.
38 Easy Type asked atSIGDRW
How many zeros does 50!50! end in?
Show answer
Answer: 1212
Count factors of 5: ⌊50/5⌋+⌊50/25⌋=10+2\lfloor50/5\rfloor+\lfloor50/25\rfloor=10+2.
39 Easy Type asked atSIGDRW
What is the angle between the hands of a clock at 9:30, in degrees?
Show answer
Answer: 105∘105^\circ
The minute hand is at 180∘180^\circ; the hour hand is halfway between 9 and 10, at 285∘285^\circ. The difference is 105∘105^\circ.
40 Medium Type asked atSIGDRW
Using only 3p and 5p coins, what is the largest amount, in pence, that cannot be paid exactly?
Show answer
Answer: 77
For coprime aa and bb the largest unreachable amount is ab−a−b=15−8=7ab-a-b=15-8=7. Every amount from 8 upwards can be made.
41 Medium Type asked atSIGDRW
A revolver has six chambers arranged in a circle. Two bullets are loaded into adjacent chambers, the cylinder is spun, and the trigger is pulled on you: it clicks on an empty chamber. It is your turn again. What is your probability of surviving if you pull the trigger without spinning again?
Show answer
Answer: 34\tfrac34 — do not spin
The four empty chambers form a block, and you are on one of them. The next chamber is loaded only if you are on the last empty chamber before the bullets, which is 1 case in 4. So not spinning survives with probability 34\tfrac34, while spinning survives with 46=23\tfrac46=\tfrac23. The click told you something about where you are in the cylinder, and spinning throws that away.
42 Easy Type asked atSIGDRW
What is the sum of the digits of 2102^{10}?
Show answer
Answer: 77
210=10242^{10}=1024 and 1+0+2+4=71+0+2+4=7.
43 Medium Type asked atSIGDRW
How many triangles with integer side lengths have perimeter 12?
Show answer
Answer: 33
Up to order: (2,5,5)(2,5,5), (3,4,5)(3,4,5) and (4,4,4)(4,4,4). Others such as (2,4,6)(2,4,6) and (1,5,6)(1,5,6) fail the triangle inequality.
44 Hard Type asked atSIGDRW
A room is 30 ft long with square end walls 12 ft by 12 ft. A spider sits on one end wall, 1 ft below the ceiling and centred; a fly sits on the opposite end wall, 1 ft above the floor and centred. The fly does not move and the spider must walk. How long, in feet, is the shortest path?
Show answer
Answer: 4040 ft
Unfold the room into a flat net and the shortest walk becomes a straight line. The naive route — straight down the wall, along the floor, up the far wall — measures 11+30+1=4211+30+1=42. But a net that crosses one end wall, a side wall, the ceiling, the other side wall and the far end wall lays the two points out at a horizontal separation of 40 and a vertical separation of 0, giving exactly 4040. The lesson is that "shortest path on a surface" is a geodesic, and you find it by flattening, not by guessing which faces to use.
45 Medium Type asked atSIGDRW
Two ropes each burn through in exactly 60 minutes, but neither burns at a uniform rate along its length. With nothing but the ropes and matches, how many minutes is the longest interval you can measure that is not a whole hour — specifically, what interval do you get by lighting the first rope at both ends and the second at one end simultaneously?
Show answer
Answer: 4545 minutes
Lighting a rope at both ends consumes it in 30 minutes whatever the burn profile, because the two flames together always finish the whole rope. When the first rope is gone, 30 minutes have passed and the second rope has 30 minutes of burn left in it. Light its other end now and it finishes in 15 more. Total 4545. The trick is that "both ends" halves the time without needing to know anything about where the rope burns fast.
46 Hard Type asked atSIGDRW
Four people must cross a bridge at night with one torch. The bridge holds at most two at a time, and anyone crossing must carry the torch; a pair moves at the slower person's pace. Their crossing times are 1, 2, 5 and 10 minutes. What is the least total time?
Show answer
Answer: 1717 minutes
The greedy route — the fastest person ferries everyone — costs 2+1+5+1+10=192+1+5+1+10=19. Better to send the two slowest together so their times overlap. Send 1 and 2 across (2), return 1 (1), send 5 and 10 together (10), return 2 (2), send 1 and 2 (2): total 1717. Pairing the two slow walkers means you pay 10 once instead of 10 and 5 separately.
47 Medium Type asked atSIGDRW
Two opposite corners are cut from an 8 by 8 chessboard, leaving 62 squares. How many dominoes, each covering two adjacent squares, can be placed without overlap or overhang?
Show answer
Answer: 3030
Opposite corners share a colour, so removing them leaves 32 of one colour and 30 of the other. Every domino covers one square of each colour, so a full cover of 31 dominoes would need 31 of each. It is impossible. The most you can place is 3030, leaving two same-coloured squares uncovered. Counting an invariant — here the colour balance — settles the question without trying a single arrangement.
48 Hard Type asked atSIGDRW
Five married couples attend a party. Everyone shakes hands with some of the others, but nobody shakes their own spouse's hand and nobody shakes the same person twice. The host asks the other nine people how many hands they shook and receives nine different answers. How many hands did the host's wife shake?
Show answer
Answer: 44
Nine different answers drawn from {0,1,…,8}\{0,1,\dots,8\} must be exactly those nine numbers. The person who shook 8 met everyone but their spouse, so their spouse is the 0. Remove that pair: in the remaining party of eight everyone has shaken one fewer of the people still present, and the same argument pairs 7 with 1, then 6 with 2, then 5 with 3. The pairs are (8,0),(7,1),(6,2),(5,3)(8,0),(7,1),(6,2),(5,3), leaving 4 unpaired — and the only person not asked is the host, so 4 is the host's wife. She shook 44 hands.
49 Medium Type asked atSIGDRW
There are 10 stacks of 10 coins. Every coin weighs 10 g except those in one stack, which weigh 11 g each. With a digital scale that reads exact weight, what is the minimum number of weighings needed to identify the heavy stack?
Show answer
Answer: 11
Take 1 coin from the first stack, 2 from the second, and so on to 10 from the tenth: 55 coins, which would weigh 550 g if all were honest. Weigh the lot at once. The excess in grams names the stack — 3 g over means stack 3. One weighing suffices because a digital scale returns a number, not a comparison, and you have encoded the answer into the sample.
50 Medium Type asked atSIGDRW
You have a 3-litre jug and a 5-litre jug, no markings, and a tap. What is the fewest number of pourings — counting each fill, empty or transfer as one — needed to measure exactly 4 litres?
Show answer
Answer: 66
Fill the 5 (1), pour into the 3 leaving 2 in the big jug (2), empty the 3 (3), move the 2 across (4), fill the 5 again (5), top up the 3 — which takes just 1 litre — leaving 4 in the 5-litre jug (6). Every reachable amount is a combination 3a+5b3a+5b, and since 3 and 5 are coprime every whole number of litres up to 5 is reachable; the puzzle is only ever about the route.
51 Hard Type asked atSIGDRW
A camel must carry 3000 bananas to a market 1000 km away. It can carry at most 1000 bananas at a time and eats 1 banana per kilometre travelled, in either direction. What is the largest number of bananas that can reach the market?
Show answer
Answer: 533533
While more than 2000 bananas remain, moving the stock forward costs 5 bananas per km (three trips out, two back). Run that for 200 km: 3000−1000=20003000-1000=2000 bananas at the 200 km mark. Now two loads remain, costing 3 per km. Run for 333 km: 2000−999=10012000-999=1001, and drop 1 to make it a single load of 1000 at 533 km. The last 467 km costs 1 per km, delivering 1000−467=5331000-467=533. The structure is that the cost per kilometre drops each time the stock falls below a multiple of the carrying capacity.
52 Medium Type asked atSIGDRW
A monk climbs a mountain, starting at 6 a.m. and arriving at dusk. He sleeps at the summit and descends the next day on the same path, again starting at 6 a.m. His pace varies freely on both days, and he may rest. How many points on the path does he occupy at the same clock time on both days?
Show answer
Answer: At least 11
Imagine the ascent and the descent happening on the same day, as two monks starting at opposite ends of the path at 6 a.m. They are on the same path moving towards each other, so they must meet. Formally, the difference between the two position functions is continuous, negative at 6 a.m. and positive at dusk, so it vanishes somewhere: the intermediate value theorem. No information about pace is needed, and none is available.
53 Medium Type asked atSIGDRW
One coin is rolled without slipping all the way around the rim of a second, identical, fixed coin until it returns to its starting point. How many complete rotations does the moving coin make about its own centre?
Show answer
Answer: 22
Its centre travels a circle of radius 2r2r, of circumference 4πr4\pi r, while the coin's own circumference is 2πr2\pi r — suggesting one rotation, which is the trap. Rolling contributes one turn, but the centre also revolves once around the fixed coin, and in a fixed frame those add: the answer is 22. This is the coin rotation paradox, and it is the same bookkeeping that makes a sidereal day differ from a solar one.
54 Medium Type asked atSIGDRW
Three switches outside a sealed room control three bulbs inside it. You may set the switches however you like, but you may enter the room only once. What is the largest number of bulbs you can correctly identify?
Show answer
Answer: All 33
Turn switch A on for ten minutes, then off. Turn B on and go in. The lit bulb is B, the dark but warm bulb is A, and the dark cold bulb is C. The puzzle is only hard while you assume the bulb carries one bit — on or off. Heat is a second channel, and two channels distinguish three states.
55 Hard Type asked atSIGDRW
Five pirates, ranked strictly by seniority, divide 100 gold coins. The most senior proposes a split; all pirates including the proposer vote; if at least half approve, it stands, otherwise the proposer is thrown overboard and the next most senior proposes. Every pirate prefers gold, then survival above all, and prefers to throw others overboard when indifferent — in that priority: survival first, then gold, then bloodshed. How many coins does the most senior pirate keep?
Show answer
Answer: 9898
Work backwards. With two left, the senior takes all 100, since his own vote is half. With three, the junior-most knows he gets 0 in the two-pirate case, so 1 coin buys him: 99,0,199,0,1. With four, the proposer needs one more vote and buys the pirate who would get 0 in the three-case: 99,0,1,099,0,1,0. With five, he needs two more votes, and buys the two who get 0 under the four-pirate split: 98,0,1,0,198,0,1,0,1. The senior keeps 9898. Backward induction, and the fact that a pirate's price is exactly one coin more than his fallback.
56 Medium Type asked atSIGDRW
Two players alternately place identical round coins on a rectangular table, no overlapping and no overhang, and the player unable to move loses. With optimal play, does the first or second player win — and if the first, what is his opening move's position expressed as the number of coins he places in the exact centre?
Show answer
Answer: The first player wins; he opens with 11 coin dead centre.
Place the first coin exactly at the centre, then mirror every opponent move through the centre point. The table is symmetric about its centre, so if the opponent's move was legal, the reflected square is free and the reply is legal too. The first player therefore always has a move and cannot be the one who runs out. Strategy stealing by symmetry: the opening move destroys the symmetry that would otherwise favour the second player.
57 Medium Type asked atSIGDRW
Five points are placed anywhere inside a square of side 1. What is the largest distance dd such that two of the points are guaranteed to be within dd of each other? Give d2d^2 as a fraction.
Show answer
Answer: d=22d=\tfrac{\sqrt2}{2}, so d2=12d^2=\tfrac12
Cut the square into four quarters of side 12\tfrac12. With five points and four quarters, some quarter holds two of them, and two points in a square of side 12\tfrac12 are at most its diagonal 22\tfrac{\sqrt2}{2} apart. So d=22≈0.707d=\tfrac{\sqrt2}{2}\approx0.707 and d2=12d^2=\tfrac12. The bound is tight: four points at the corners and one at the centre sit exactly that far apart.
58 Hard Type asked atSIGDRW
An ant starts at one end of a rubber band 1 m long and crawls at 1 cm per second. At the end of every second the band is instantaneously and uniformly stretched by a further 1 m. Does the ant ever reach the far end — and if so, is the number of seconds finite? Answer 1 for yes, 0 for no.
Show answer
Answer: 11 — yes, it arrives
Track the fraction of the band behind the ant rather than its distance, because stretching carries the ant along and leaves that fraction unchanged. In second nn the band is nn metres long and the ant adds 1100n\tfrac{1}{100n} of it. The total progress after NN seconds is 1100∑n=1N1n\tfrac1{100}\sum_{n=1}^{N}\tfrac1n, a harmonic sum, which diverges. So the fraction reaches 1 and the ant arrives — after about e100e^{100} seconds, a time beyond absurd, but finite. Divergence of the harmonic series is doing all the work.
59 Medium Type asked atSIGDRW
A solid 3 by 3 by 3 cube is to be cut into 27 unit cubes. Cuts are straight planes, and after each cut the pieces may be rearranged freely. What is the minimum number of cuts?
Show answer
Answer: 66
Rearranging cannot help. Consider the central unit cube: it has six faces, none on the surface of the original block, and each of those faces must be produced by a distinct cut, since one plane cut can create only one of them. So at least 6 cuts are needed, and 6 obviously suffice — two in each direction. The invariant is the innermost cube, and it caps the answer regardless of how cleverly you stack the pieces.
60 Hard Type asked atSIGDRW
A census taker is told the product of the ages of three children is 36 and their sum equals the number on the gate. He looks at the gate and says he still cannot tell. He is then told the eldest plays the piano. What is the age of the eldest?
Show answer
Answer: 99
Triples with product 36 and their sums: (1,1,36)=38(1,1,36)=38, (1,2,18)=21(1,2,18)=21, (1,3,12)=16(1,3,12)=16, (1,4,9)=14(1,4,9)=14, (1,6,6)=13(1,6,6)=13, (2,2,9)=13(2,2,9)=13, (2,3,6)=11(2,3,6)=11, (3,3,4)=10(3,3,4)=10. Only the sum 13 is ambiguous, so the gate reads 13. "The eldest" implies a unique oldest child, ruling out (1,6,6)(1,6,6) and leaving (2,2,9)(2,2,9). The eldest is 99. The census taker's failure is itself the decisive piece of information.
61 Medium Type asked atSIGDRW
Using a two-pan balance and weights you choose, weights may be placed in either pan. What is the smallest number of weights that can measure every whole number of grams from 1 to 40?
Show answer
Answer: 44
Use 1, 3, 9 and 27. Allowing a weight in either pan or neither gives each one three roles — +1+1, −1-1, 00 — so four weights express every integer in balanced ternary from −40-40 to 4040. For instance 5 is 9−3−19-3-1, meaning 9 in one pan against the object plus 3 and 1 in the other. Powers of 3, not 2, because the second pan gives you subtraction for free.
62 Medium Type asked atSIGDRW
A car travels from A to B at 30 mph and returns along the same road at 60 mph. What is its average speed for the round trip, in mph?
Show answer
Answer: 4040
Not 45. Average speed is total distance over total time, and the slow leg occupies twice the hours of the fast one, so it dominates. For distance dd each way the time is d30+d60=d20\tfrac d{30}+\tfrac d{60}=\tfrac{d}{20} for 2d2d miles, giving 4040 mph — the harmonic mean of 30 and 60. Whenever equal distances are travelled at different speeds, the harmonic mean is the right average.
63 Hard Type asked atSIGDRW
On an island live 13 grey, 15 brown and 17 crimson chameleons. Whenever two of different colours meet, both change to the third colour. Can they all become one colour? Answer 1 for yes, 0 for no.
Show answer
Answer: 00 — impossible
Look at the counts modulo 3. They start at 13,15,17≡1,0,213,15,17\equiv1,0,2 — all three residues distinct. A meeting reduces two counts by 1 and raises the third by 2, which shifts every count by the same amount modulo 3, so the differences between counts are invariant mod 3. Ending in one colour means counts 45,0,045,0,0, whose residues are 0,0,00,0,0 — all equal. Distinct residues can never become equal, so it cannot happen. Almost every "can this state be reached" puzzle is an invariant in disguise.
64 Medium Type asked atSIGDRW
In a 3 by 3 magic square using 1 to 9 exactly once, with every row, column and both diagonals summing alike, what number must occupy the centre?
Show answer
Answer: 55
The nine numbers total 45, so each line sums to 15. Add the four lines through the centre — two diagonals, the middle row, the middle column: they cover every cell once except the centre, which they cover four times. So 4×15=45+3c4\times15=45+3c, giving c=5c=5. The centre is forced before you place a single other number.
65 Hard Type asked atSIGDRW
Two players take turns removing 1, 2 or 3 matches from a pile of 21, and whoever takes the last match wins. The first player moves first. How many matches should he take to guarantee a win?
Show answer
Answer: 11
Positions that are multiples of 4 are losing for whoever faces them: whatever you take, your opponent restores the multiple. 21 is not a multiple of 4, so take 11 to leave 20, then always take 4−k4-k when your opponent takes kk. You hand over 16, 12, 8, 4 and finally 0. Every subtraction game of this shape reduces to arithmetic modulo one more than the largest legal move.
66 Medium Type asked atSIGDRW
You reach a fork where one road leads to the city and the other to certain doom. Two guards stand there: one always lies, one always tells the truth, and you cannot tell which is which. You may ask exactly one yes-or-no question to one guard. How many questions of that kind are needed — and what is the least number of guards you must address?
Show answer
Answer: 11 question, to 11 guard
Ask either guard: "If I asked the other guard whether the left road leads to the city, would he say yes?" Both guards give the same answer, and it is the opposite of the truth — the liar lies about the truth-teller's honest answer, and the truth-teller reports the liar's lie faithfully. So take the road the answer denies. Routing the question through both guards makes exactly one lie enter the chain whichever guard you ask, which is what removes your ignorance of who is who.
67 Medium Type asked atSIGDRW
A bookworm bores in a straight line from the front cover of volume 1 to the back cover of volume 3 of a three-volume set standing in order on a shelf. Each volume's pages are 4 cm thick and each cover is 0.5 cm. How many centimetres does it bore through?
Show answer
Answer: 66 cm
Books on a shelf face left to right, so volume 1's front cover is on the *right* of that volume — adjacent to volume 2. Likewise volume 3's back cover faces left. The worm therefore passes only volume 1's front cover (0.5), all of volume 2 (0.5 + 4 + 0.5), and volume 3's back cover (0.5), totalling 0.5+5+0.5=60.5+5+0.5=6 cm. Reading the shelf correctly rather than the volumes is the whole puzzle.
68 Medium Type asked atSIGDRW
How many distinct ways can a 2 by 10 rectangle be tiled by 2 by 1 dominoes?
Show answer
Answer: 8989
Let f(n)f(n) count tilings of a 2 by nn strip. The leftmost column is covered either by one vertical domino, leaving f(n−1)f(n-1), or by two horizontal ones stacked, leaving f(n−2)f(n-2). So f(n)=f(n−1)+f(n−2)f(n)=f(n-1)+f(n-2) with f(1)=1f(1)=1, f(2)=2f(2)=2: the Fibonacci numbers. f(10)=89f(10)=89. The recursion comes from asking only what happens at the edge, which is the standard way into almost every tiling count.
69 Medium Type asked atSIGDRW
What is the smallest number of colours needed to colour the faces of a cube so that no two faces sharing an edge have the same colour?
Show answer
Answer: 33
Two is impossible: any face touches four others, which between them touch each other. Three works — give each pair of opposite faces its own colour, and since opposite faces never share an edge, no conflict arises. So 33. The graph of a cube's faces is the octahedron's vertex graph, and its chromatic number is 3.
70 Medium Type asked atSIGDRW
What is the sum of all the digits written when listing the integers from 1 to 100?
Show answer
Answer: 901901
Treat 1 to 99 as two-digit strings 00 to 99. Each of the digits 0 to 9 appears ten times in the units place and ten times in the tens place, so each place contributes 10×45=45010\times45=450, giving 900. The number 100 adds 1. Total 901.
71 Medium Type asked atSIGDRW
What is the smallest positive integer that leaves remainder 1 when divided by each of 2, 3, 4, 5 and 6, and is divisible by 7?
Show answer
Answer: 301301
Remainder 1 by each of 2 to 6 means n−1n-1 is a multiple of lcm⁡(2,3,4,5,6)=60\operatorname{lcm}(2,3,4,5,6)=60, so n=60k+1n=60k+1. Modulo 7, 60≡460\equiv4, so we need 4k+1≡04k+1\equiv0, i.e. k≡5(mod7)k\equiv5\pmod7. The smallest is k=5k=5, n=301n=301.
72 Medium Type asked atSIGDRW
In one full day of 24 hours, how many times are the hour and minute hands of a clock exactly at right angles?
Show answer
Answer: 4444
The minute hand gains 5.5∘5.5^\circ a minute on the hour hand, so the angle between them sweeps through 360∘360^\circ 22 times in 24 hours. Each sweep passes through 90∘90^\circ once and 270∘270^\circ once, giving 44. The guess of 48, two per hour, fails because the hands do not complete a relative lap every hour.
73 Medium Type asked atSIGDRW
How many positive integers less than 1000 have only odd digits?
Show answer
Answer: 155155
Each digit has 5 odd choices. One-digit: 5. Two-digit: 25. Three-digit: 125. Total 155. Leading zeros cannot sneak in, because 0 is even.
74 Easy Type asked atSIGDRW
What is 11⋅2+12⋅3+13⋅4+⋯+199⋅100\dfrac1{1\cdot2}+\dfrac1{2\cdot3}+\dfrac1{3\cdot4}+\dots+\dfrac1{99\cdot100}?
Show answer
Answer: 99100\tfrac{99}{100}
1n(n+1)=1n−1n+1\dfrac1{n(n+1)}=\dfrac1n-\dfrac1{n+1}, so the sum telescopes to 1−11001-\tfrac1{100}.
75 Hard Type asked atSIGDRW
Six points are placed on a circle so that no three of the chords joining them meet at a single interior point. All 15 chords are drawn. Into how many regions is the disc divided?
Show answer
Answer: 3131
With 1 to 5 points you get 1, 2, 4, 8, 16 regions, and 6 points break the pattern with 31. Count by Euler's formula, or directly: every interior crossing comes from choosing 4 of the points ((64)=15\binom64=15), and each chord and each crossing adds a region, so the count is 1+(62)+(64)=1+15+15=311+\binom62+\binom64=1+15+15=31. The puzzle is a standard warning against trusting a pattern from its first five terms.
76 Medium Type asked atSIGDRW
What is the largest number of pieces a flat pizza can be cut into with 7 straight cuts, if the pieces may not be moved between cuts?
Show answer
Answer: 2929
The kk-th cut can cross each of the previous k−1k-1 cuts once, passing through kk existing pieces and splitting each in two. So it adds kk pieces, and nn cuts give 1+(1+2+⋯+n)=1+n(n+1)21+(1+2+\dots+n)=1+\tfrac{n(n+1)}2. For n=7n=7, 29.
77 Hard Type asked atSIGDRW
An island has 100 perfect logicians with blue eyes and no mirrors. Nobody knows their own eye colour, and anyone who works out that they have blue eyes must leave that night. A visitor announces to everyone: "At least one of you has blue eyes." On which night do the blue-eyed islanders leave?
Show answer
Answer: Night 100100
Induct on the number nn of blue-eyed people. With n=1n=1, that person sees no blue eyes, knows it must be them, and leaves on night 1. With n=2n=2, each sees one blue-eyed person and waits; when nobody leaves on night 1, each concludes there must be a second, namely themselves, and both leave on night 2. In general all nn leave on night nn. The visitor told everyone something they already knew, but made it common knowledge, and that is what starts the count.
78 Medium Type asked atSIGDRW
You have a glass of wine and a glass of water, equal volumes. You move a spoonful of wine into the water and stir, then move a spoonful of the mixture back into the wine. Is there more wine in the water, or more water in the wine? Give the difference.
Show answer
Answer: 00 — they are equal
Each glass ends with the volume it started with. Whatever wine is missing from the wine glass has been replaced by exactly that volume of water, and that missing wine is now in the water glass. So the two amounts are equal, however much you stirred.
79 Hard Type asked atSIGDRW
A 5×55\times5 square array of dots is drawn with unit spacing. How many squares have all four corners on dots, counting squares tilted at any angle?
Show answer
Answer: 5050
Every square sits inside an axis-aligned bounding square of side bb (from 1 to 4). A bounding square of side bb contains exactly bb inscribed squares with corners on its edges, including itself. It can be placed in (5−b)2(5-b)^2 positions. So the total is ∑b=14b(5−b)2=16+18+12+4=50\sum_{b=1}^4 b(5-b)^2=16+18+12+4=50. Counting only upright squares gives 30; the tilted ones are the 20 people miss.
80 Easy Type asked atSIGDRW
A brick weighs 1 kg plus half a brick. How much does the brick weigh?
Show answer
Answer: 22 kg
b=1+b2b=1+\tfrac b2, so b2=1\tfrac b2=1 and b=2b=2. The fast wrong answer, 1.5 kg, treats "half a brick" as half a kilogram.
81 Hard Type asked atSIGDRW
Five sailors gather a pile of coconuts. During the night each sailor in turn wakes, divides the pile into five equal shares with one coconut left over, gives that one to a monkey, hides one share, and pushes the rest back together. In the morning the remaining pile divides into five equal shares with none left over. What is the smallest possible original number of coconuts?
Show answer
Answer: 31213121
Add four phantom coconuts. With n+4n+4 in the pile, each night's step (remove one, take a fifth, keep four fifths) becomes exactly "take four fifths of the pile", because n−1−n−15=45(n+4)−4n-1-\tfrac{n-1}5=\tfrac45(n+4)-4. After five nights the pile holds (45)5(n+4)−4\left(\tfrac45\right)^5(n+4)-4, and the morning division needs this to be a multiple of 5. So n+4n+4 must be a multiple of 55=31255^5=3125. The smallest is n=3121n=3121, and checking forwards confirms it: 3121, 2496, 1996, 1596, 1276, 1020 in the morning, which is 5×2045\times204.
82 Hard Type asked atSIGDRW
In Nim with three piles of 3, 4 and 5 counters, players alternately remove any positive number of counters from one pile, and whoever takes the last counter wins. How many winning first moves are there?
Show answer
Answer: 11 — take 2 from the pile of 3
A position is lost for the player to move exactly when the binary XOR of the piles is 0. Here 3⊕4⊕5=23\oplus4\oplus5=2, so the first player can win by moving to XOR 0. Changing pile xx to x⊕2x\oplus2 requires x⊕2<xx\oplus2<x: that holds for 3 (giving 1) but not for 4 (giving 6) or 5 (giving 7). So the only winning move is to reduce the 3-pile to 1.
83 Easy Type asked atSIGDRW
How many three-digit numbers are palindromes (read the same forwards and backwards)?
Show answer
Answer: 9090
A three-digit palindrome abaaba is fixed by its first digit (1 to 9) and middle digit (0 to 9): 9×10=909\times10=90.
84 Hard Type asked atSIGDRW
100 coins lie on a table, exactly 10 of them heads up. You are blindfolded and cannot feel which side is up, but you may move and flip coins. You must split them into two groups with the same number of heads. How many coins should go in the group you then flip over?
Show answer
Answer: 1010
Take any 10 coins and flip every one of them. If that group held hh heads, it now holds 10−h10-h. The other 90 coins hold the remaining 10−h10-h heads. The two groups match whatever hh was.
85 Hard Type asked atSIGDRW
You have three identical eggs and a 100-storey building. What is the smallest number of drops that guarantees finding the highest floor from which an egg survives?
Show answer
Answer: 99
With dd drops and ee eggs you can cover ∑k=1e(dk)\sum_{k=1}^{e}\binom dk floors, since each drop either breaks an egg (one fewer egg, one fewer drop) or not (one fewer drop). With three eggs: d=8d=8 covers 8+28+56=928+28+56=92 floors, too few; d=9d=9 covers 9+36+84=1299+36+84=129. So 9. With two eggs the same formula gives the familiar 14.
86 Medium Type asked atSIGDRW
What is the smallest number of moves a knight needs to go from one corner of a chessboard (a1) to the opposite corner (h8)?
Show answer
Answer: 66
The corners are 7 files and 7 ranks apart, 14 in total, and a knight move covers at most 3 of that, so at least 5 moves. But every knight move changes the colour of the square, and a1 and h8 are the same colour, so the number of moves is even: at least 6. Six is enough: a1–b3–c5–d7–f8–g6–h8.
87 Medium Type asked atSIGDRW
What is the sum of all positive integers below 1000 that are multiples of 3 or of 5?
Show answer
Answer: 233,168233{,}168
Inclusion and exclusion with arithmetic series: multiples of 3 below 1000 sum to 3⋅333⋅3342=166,8333\cdot\tfrac{333\cdot334}2=166{,}833, multiples of 5 to 5⋅199⋅2002=99,5005\cdot\tfrac{199\cdot200}2=99{,}500, and multiples of 15, counted twice, to 15⋅66⋅672=33,16515\cdot\tfrac{66\cdot67}2=33{,}165. Total 233,168233{,}168.
88 Medium Type asked atSIGDRW
In how many ways can you make £1 using only 50p, 20p and 10p coins?
Show answer
Answer: 1010
Fix the number of 50p coins. None: 20b+10c=10020b+10c=100 gives b=0,…,5b=0,\dots,5, six ways. One: 20b+10c=5020b+10c=50 gives three ways. Two: one way. Total 10. Fixing the largest coin first keeps the count honest.
89 Hard Type asked atSIGDRW
What is the largest number of pieces a solid cake can be cut into with 5 straight plane cuts, pieces not being moved between cuts?
Show answer
Answer: 2626
The kk-th cut is a plane, and the earlier cuts divide that plane into at most as many regions as k−1k-1 lines divide a plane: 1+(k−1)k21+\tfrac{(k-1)k}2. Each region splits one piece in two. Adding up: 1+∑k=15(1+k(k−1)2)=(50)+(51)+(52)+(53)=261+\sum_{k=1}^{5}\big(1+\tfrac{k(k-1)}2\big)=\binom50+\binom51+\binom52+\binom53=26. Lines give the lazy-caterer numbers; planes give these, the cake numbers.
90 Hard Type asked atSIGDRW
41 people stand in a circle, numbered 1 to 41. Counting round the circle from person 1, every third person still standing is removed (3, 6, 9, …), until one remains. Which number survives?
Show answer
Answer: 3131
Use the recursion J(n)=(J(n−1)+3) mod nJ(n)=(J(n-1)+3)\bmod n with J(1)=0J(1)=0, counting positions from 0. Iterating up to n=41n=41 gives position 30, which is person 31. This is the original Josephus setting; with a count of 2 there is a closed form, but with 3 the recursion is the honest method.
91 Medium Type asked atSIGDRW
An ant is at one corner of a solid cube with edges of length 1 and must walk on the surface to the opposite corner. What is the length of the shortest route?
Show answer
Answer: 5≈2.236\sqrt5\approx2.236
Unfold two adjacent faces into a 1 by 2 rectangle; the two corners become opposite corners of that rectangle, and the straight line between them has length 12+22=5\sqrt{1^2+2^2}=\sqrt5. Going along edges costs 3, and crossing a face diagonal then an edge costs 2+1≈2.41\sqrt2+1\approx2.41.
92 Medium Type asked atSIGDRW
You must pay a worker one gold link a day for 7 days from a single chain of 7 links, settling up at the end of each day. What is the fewest cuts you need?
Show answer
Answer: 11
Cut the third link. That leaves pieces of 1, 2 and 4 links, and every total from 1 to 7 is a sum of some of them. Day 1 pay the 1; day 2 pay the 2 and take back the 1; day 3 add the 1; day 4 pay the 4 and take back the rest; and so on. Powers of two are the trick.
93 Medium Type asked atSIGDRW
What is the largest number of kings that can be placed on a chessboard so that no two attack each other?
Show answer
Answer: 1616
Split the board into sixteen 2 by 2 blocks. Any two squares in one block are adjacent, so each block holds at most one king: at most 16. Putting a king on the bottom-left square of every block achieves it.
94 Medium Type asked atSIGDRW
What is the largest number of knights that can be placed on a chessboard so that no two attack each other?
Show answer
Answer: 3232
All 32 squares of one colour work, because a knight always attacks the other colour. No more is possible: the board splits into 32 pairs of squares a knight's move apart (each 2 by 4 strip splits into four such pairs), and each pair can hold at most one knight.
95 Easy Type asked atSIGDRW
A queen stands in a corner of an empty chessboard. How many squares does she attack?
Show answer
Answer: 2121
Seven along the rank, seven along the file and seven along the long diagonal: 21. From a central square she attacks 27, the most possible.

Keep practising

Want someone to work through these with you? Quant interview preparation, one to one, or book a free 20-minute call.