Quant interview prep

Brainteasers interview questions

Brainteasers measure how you think out loud under pressure: logic puzzles, game theory, and lateral problems with a clean insight hiding behind them. The point is your reasoning, not a memorized answer — so practice narrating your approach.

264 brainteasers questions · 13 free to preview · 2,516 problems total

13 practice questions

FreeBrainteaserEasyJane StreetSIGFive Rings

Priya and Theo each raise ants. Priya has 4040 ants and Theo has 8080 ants. They stand at opposite ends of an infinitesimally wide string and release all their ants onto it simultaneously. All ants move at the same constant speed. Whenever two ants meet, they both reverse direction. Each ant moves only forward. Let xx be the number of ants that reach Priya and yy the number that reach Theo. Compute xyx - y.

Solution

The key insight is that when two ants meet and reverse direction, the system is equivalent to the ants passing through each other without interaction, because the ants are indistinguishable. Under this "pass-through" model, each ant simply continues in its original direction forever. Therefore, the number of ants that reach Priya's end equals the number of ants that were initially moving leftward (toward Priya), and the number that reach Theo's end equals the number initially moving rightward (toward Theo).

Initially, all 40 ants at Priya's end move rightward (toward Theo), and all 80 ants at Theo's end move leftward (toward Priya). Under the pass-through equivalence, the ants that reach Priya are those that started at Theo's end and moved leftward: 80 ants. The ants that reach Theo are those that started at Priya's end and moved rightward: 40 ants. Thus x=80x = 80, y=40y = 40, and

xy=8040=40.x - y = 80 - 40 = 40.

More formally, let xx be the number reaching Priya and yy the number reaching Theo. Under the pass-through model, each ant's trajectory is a straight line from its start to the opposite end. Since all ants move at the same speed, the number reaching each end is exactly the number that started at the opposite end. Hence x=80x = 80, y=40y = 40, and the difference is 4040.

FreeBrainteaserEasyJane StreetSIGFive Rings

On a sheet of paper are 100100 statements. The first reads, "at most 00 of these 100100 statements are true." The second reads, "at most 11 of these 100100 statements are true." In general, the nnth statement says, "at most n1n-1 of these 100100 statements are true." How many statements are true?

Solution

Let the statements be numbered 1,2,,1001,2,\dots,100. Statement kk says: "at most k1k-1 of these 100100 statements are true."

Let TT be the total number of true statements. For statement kk to be true, we must have Tk1T \le k-1; for it to be false, T>k1T > k-1. Hence statement kk is true exactly when kT+1k \ge T+1.

Thus the true statements are those with indices T+1,T+2,,100T+1, T+2, \dots, 100. The number of such statements is 100T100 - T. But this number must equal TT itself, because TT is the total number of true statements. Therefore:

T=100T2T=100T=50.T = 100 - T \quad\Longrightarrow\quad 2T = 100 \quad\Longrightarrow\quad T = 50.

Check: If T=50T=50, then statements 5151 through 100100 are true (50 statements). Statement 5151 says "at most 5050 are true" — true because exactly 5050 are true. Statement 5050 says "at most 4949 are true" — false because 50>4950 > 49. All statements 11 through 4949 are false because each claims "at most k1k-1 are true" with k148k-1 \le 48, but 50>k150 > k-1. All statements 5252 through 100100 are true because each claims "at most k1k-1 are true" with k151k-1 \ge 51, and 50k150 \le k-1. Hence exactly 5050 statements are true, consistent with T=50T=50.

Thus the answer is 5050.

FreeGame theoryEasyJane StreetSIGDE Shaw

On a magic island covered in grass live 100 tigers and 1 sheep. The tigers can eat grass but prefer sheep. Each time, only one tiger may eat the sheep, and after doing so it turns into a sheep itself. All tigers are intelligent, perfectly rational, and value survival. Will the sheep be eaten?

Solution

We determine the outcome by backward induction on the number of tigers, nn. The key observation is that a tiger will eat the sheep only if doing so guarantees its own survival after it turns into a sheep.

  • n=1n=1: The lone tiger eats the sheep, becomes a sheep, and faces no remaining tigers. It survives, so the sheep is eaten.
  • n=2n=2: If a tiger eats the sheep, it becomes a sheep, leaving one tiger and one sheep. By the n=1n=1 case, that remaining tiger will eat the new sheep, so the first tiger would die. Since tigers value survival, neither will eat. The sheep survives.
  • n=3n=3: If a tiger eats, it becomes a sheep, leaving two tigers and one sheep. From n=2n=2, the two tigers will not eat the sheep (they would die), so the eating tiger survives. Hence some tiger will eat, and the sheep is eaten.
  • n=4n=4: Eating leads to the n=3n=3 case, where the sheep is eaten, so the eating tiger would die. No tiger eats; the sheep survives.

Continuing this logic, the sheep is eaten if and only if nn is odd. For n=100n=100 (even), no tiger will eat the sheep.

FreeBrainteaserHardJane StreetSIGFive Rings

An oil tanker must transport 30003000 gallons of oil from Port A to Port B, which are 10001000 miles apart. The tanker loses 11 gallon per mile traveled due to constant spillage, and it can carry at most 10001000 gallons at any time. It may deposit oil at any number of intermediate storage ports along the route and later retrieve it. Under an optimal travel plan (choosing where to place storage ports and how to carry the oil), what is the maximum number of gallons that can be delivered to Port B? Round to the nearest gallon.

Solution

This is a classic "jeep problem" (desert crossing) variant. The tanker starts with 30003000 gallons at Port A, must travel 10001000 miles to Port B, loses 11 gallon per mile, and has capacity 10001000 gallons. The goal is to maximize delivered oil.

Key insight: The optimal strategy uses intermediate depots and shuttles oil forward in stages, each stage moving a certain amount of oil a certain distance while consuming fuel for round trips. The number of trips decreases by one each stage.

Let D=1000D = 1000 miles, capacity C=1000C = 1000 gallons, initial fuel F=3000F = 3000 gallons. Consumption is 11 gallon per mile.

General principle: To move nn full loads (i.e., n×1000n \times 1000 gallons) a distance dd, you make nn forward trips and n1n-1 return trips, consuming (2n1)d(2n-1)d gallons. The amount delivered forward is nC(2n1)dnC - (2n-1)d.

Stage 1: Start with 30003000 gallons at A, i.e., n1=3n_1 = 3 loads. Move forward distance d1d_1 such that after shuttling we have exactly n2=2n_2 = 2 loads (20002000 gallons) at the next depot. Fuel consumed: (231)d1=5d1(2\cdot3-1)d_1 = 5d_1. Remaining: 30005d1=2000d1=2003000 - 5d_1 = 2000 \Rightarrow d_1 = 200 miles.

Stage 2: At mile 200200, we have 20002000 gallons (n2=2n_2 = 2 loads). Move forward distance d2d_2 to reduce to 11 load (10001000 gallons). Fuel consumed: (221)d2=3d2(2\cdot2-1)d_2 = 3d_2. Remaining: 20003d2=1000d2=333132000 - 3d_2 = 1000 \Rightarrow d_2 = 333\frac{1}{3} miles.

Stage 3: At mile 200+33313=53313200 + 333\frac{1}{3} = 533\frac{1}{3}, we have 10001000 gallons (n3=1n_3 = 1 load). Drive directly to B, which is 100053313=466231000 - 533\frac{1}{3} = 466\frac{2}{3} miles away. Fuel consumed: 46623466\frac{2}{3} gallons. Delivered: 100046623=533131000 - 466\frac{2}{3} = 533\frac{1}{3} gallons.

Thus the maximum deliverable is 53313533\frac{1}{3} gallons, which rounds to 533533 gallons.

Verification: Total fuel consumed = 5×200+3×33313+1×46623=1000+1000+46623=2466235\times200 + 3\times333\frac{1}{3} + 1\times466\frac{2}{3} = 1000 + 1000 + 466\frac{2}{3} = 2466\frac{2}{3} gallons, matching 3000533133000 - 533\frac{1}{3}. Total distance traveled = same sum, confirming consumption rate.

BrainteaserWarmupJane StreetSIGFive Rings

Lightning McQueen and Tow Mater start at opposite ends of a one-lane road of length 300300 miles (Highway 66) and drive toward each other at constant speeds of 9090 mph and 4545 mph, respectively. A fly begins on Tow Mater and flies toward Lightning McQueen at 135135 mph; upon reaching Lightning McQueen it instantly reverses direction and flies back to Tow Mater at the same speed, repeating this pattern until the two cars collide. How many total miles does the fly travel?

Approach

Consider the total time the fly spends in the air rather than the details of its back-and-forth path.

BrainteaserWarmupJane StreetSIGDE Shaw

Three bins contain rubber balls: one bin holds only yellow balls, another only red balls, and the third holds both yellow and red balls. Every bin is intentionally mislabeled. What is the minimum number of balls that must be drawn from the bins to determine the true contents of each bin?

Approach

Consider the information you can gain from the bin labeled 'mixed' given that every label is wrong.

BrainteaserEasyJane StreetSIGDE Shaw

A king has 1000 bottles of wine, one of which has been poisoned by an intruder. The poison takes just under four weeks to kill, and the king needs the remaining 999 safe bottles for a party in four weeks. He has plenty of prisoners who are condemned to die. Any amount of the poisoned wine is lethal. What is the minimum number of prisoners the king needs to guarantee he identifies the poisoned bottle before the party?

Approach

Think of each prisoner as a bit that can encode information about which bottle is poisoned.

BrainteaserEasyJane StreetSIGFive Rings

You stand in a room where 1000 coins lie scattered on the floor: 980 show tails and 20 show heads. Your task is to separate the coins into two piles. Can you guarantee that both piles contain the same number of heads? You may not touch the coins to feel which side is up, but you may flip as many as you like.

Approach

Think about what size pile you might want to form based on the total number of heads.

BrainteaserEasyJane StreetSIGDE Shaw

You are on a one-way circular racetrack. NN gas cans are placed at distinct locations, and the total fuel in the cans is exactly enough for your car to complete one full lap. Your car starts with an empty tank, but you may choose any starting point and collect gas cans as you pass them. Is it always possible to select a starting position that allows you to finish the entire lap?

Approach

Consider the net fuel change as you travel clockwise from an arbitrary starting point, allowing the fuel level to go negative.

Game theoryEasyJane StreetSIGDE Shaw

One hundred tigers and one sheep live on a magic island covered only in grass. Tigers can survive on grass but prefer to eat the sheep. If a tiger bites the sheep, that tiger immediately becomes a sheep. If two tigers attack the sheep, only the first tiger to bite transforms into a sheep. All tigers are rational and prioritize their own survival. Will the sheep survive?

Approach

Analyze the situation with a very small number of tigers, such as 1 or 2, to see how the outcome depends on the count.

Game theoryEasyJane StreetSIGDE Shaw

Five pirates have looted 100 gold coins. The oldest pirate proposes a division of the coins (e.g., 20, 20, 20, 20, 20). The plan is accepted if at least 50% of the pirates (including the proposer) vote for it; otherwise, the proposer is executed and the next oldest pirate makes a proposal. This process repeats until a plan is approved. All pirates are perfectly rational: they prioritize staying alive, then maximizing their own earnings. How many coins will the oldest pirate receive?

Approach

Work backwards from the scenario where only the youngest pirate remains — what would he do? Then consider the case with two pirates, and so on.

Game theoryEasyJane StreetSIGFive Rings

Each player simultaneously picks an integer from 0 to 100 inclusive. The winner is the player whose number is closest to two-thirds of the average of all chosen numbers. Assuming all players are rational and this fact is common knowledge, what number should you pick?

Approach

Consider what the maximum possible target value is, regardless of what other players choose.

Game theoryEasyJane StreetSIGFive Rings

Mordecai has a large target of radius 1010 and a laser pointer. He clumsily points the laser at a uniformly random point on the target. Let DD be the random distance from the laser point to the center. He offers you a game: before he points the laser once, you choose a value 0r100 \leq r \leq 10. If the laser lands within distance rr of the center, you pay Mordecai $(10r)(10-r); otherwise, he pays you $rr. Find the value of rr that maximizes your expected winnings.

Approach

Write the expected winnings as a function of r by conditioning on whether the laser lands inside or outside the circle of radius r.

Related topics & firms

Frequently asked questions

How many brainteasers questions does QuantGrind have?

264 brainteasers questions in total across our 2,516-problem set. 13 are free to preview here; the rest unlock with a membership, each with hints, the accepted answer, and a full worked solution.

Are brainteasers questions important for quant interviews?

Yes — brainteasers shows up in nearly every quant trading and research process, from the first phone screen through the final round. Building fluency here is one of the highest-leverage things you can do to prepare.

What's the best way to practice brainteasers for interviews?

Work problems timed and explain each step out loud, the way you would to an interviewer. When you miss one, redo it from scratch a day later — recognizing a problem is not the same as being able to solve a fresh variant fast.

Practice the full Brainteasers set

Every question comes with progressive hints, the accepted answer, and a full worked solution. 100 free to start — no card required.