Quant firm interview prep

Five Rings interview questions

Representative quant-interview questions tagged to Five Rings, concentrated in probability, combinatorics, and brainteasers. Preview a free set below, then drill the full bank with hints and worked solutions.

884 Five Rings questions · 60 free to preview · 2,516 problems total

16 practice questions

FreeProbabilityEasyFive RingsJane StreetSIG

How many rolls of a fair NN-sided die are required, on average, to observe every face at least once? Compute the value for N=100N = 100, rounded to the nearest integer.

Solution

Coupon Collector's Problem

High-level idea. Decompose the total waiting time into independent geometric stages, then apply linearity of expectation.

Stage decomposition

Let TT be the total number of rolls of a fair NN-sided die needed to observe every face at least once. Define stage kk (k=1,,Nk = 1, \ldots, N) as the period that begins the moment the (k1)(k{-}1)-th distinct face was first seen and ends when the kk-th distinct face is first seen. Writing TkT_k for the number of rolls in stage kk,

T=T1+T2++TN.T = T_1 + T_2 + \cdots + T_N.

Distribution of each stage

At the start of stage kk, exactly k1k-1 faces have been observed. Each roll independently reveals a previously unseen face with probability

pk=N(k1)N=Nk+1N.p_k = \frac{N-(k-1)}{N} = \frac{N-k+1}{N}.

Hence TkGeometric(pk)T_k \sim \operatorname{Geometric}(p_k) (number of trials until first success), so

E[Tk]=1pk=NNk+1.E[T_k] = \frac{1}{p_k} = \frac{N}{N-k+1}.

Closed-form expected value

By linearity of expectation,

E[T]=k=1NNNk+1.E[T] = \sum_{k=1}^{N} \frac{N}{N-k+1}.

Reindexing with j=Nk+1j = N-k+1 (as kk runs 1N1 \to N, jj runs N1N \to 1):

E[T]=Nj=1N1j=NHN,E[T] = N \sum_{j=1}^{N} \frac{1}{j} = N \cdot H_N,

where HN=j=1N1jH_N = \displaystyle\sum_{j=1}^{N} \frac{1}{j} is the NN-th harmonic number.

Numerical evaluation for N=100N = 100

Using the Euler–Maclaurin asymptotic expansion

HN=lnN+γ+12N112N2+1120N4,H_N = \ln N + \gamma + \frac{1}{2N} - \frac{1}{12N^2} + \frac{1}{120N^4} - \cdots,

with γ=0.57721566490153\gamma = 0.57721566490153\ldots (Euler–Mascheroni constant):

H1004.60517018598809ln100+0.57721566490153γ+0.005000000000001/2000.000008333331/1200005.18737752.\begin{aligned} H_{100} &\approx \underbrace{4.60517018598809}_{\ln 100} + \underbrace{0.57721566490153}_{\gamma} + \underbrace{0.00500000000000}_{1/200} - \underbrace{0.00000833333}_{1/120000} \\ &\approx 5.18737752. \end{aligned}

Therefore,

E[T]N=100=100×H100518.74.E[T]\big|_{N=100} = 100 \times H_{100} \approx 518.74.

Rounded to the nearest integer:

519.\boxed{519}.
FreeProbabilityEasyFive RingsJane StreetSIG

A fair coin is flipped repeatedly until the first heads appears. The payout is 2n2^n dollars if the first heads occurs on the nnth toss. Determine the fair value of this game. If the expected value is infinite, output 1-1.

Solution

Let NN be the number of coin flips until the first heads appears. Since the coin is fair, NN follows a geometric distribution with success probability 1/21/2: P(N=n)=(1/2)nP(N = n) = (1/2)^n for n=1,2,3,n = 1, 2, 3, \dots (the first n1n-1 flips are tails and the nnth flip is heads). The payout when N=nN = n is 2n2^n dollars. The expected value of the payout is

E[payout]=n=12nP(N=n)=n=12n(12)n=n=11=.E[\text{payout}] = \sum_{n=1}^{\infty} 2^n \cdot P(N = n) = \sum_{n=1}^{\infty} 2^n \cdot \left(\frac{1}{2}\right)^n = \sum_{n=1}^{\infty} 1 = \infty.

Since the expected value is infinite, the game does not have a finite fair value. Per the problem instructions, output 1-1.

FreeProbabilityEasyFive RingsJane StreetSIG

A fair standard die is rolled until two consecutive 11s first appear. Find the expected number of rolls.

Solution

High-level idea

Model the process as a Markov chain with two transient states tracking the current "run" of consecutive 1s. Set up first-step equations and solve the 2×22\times 2 linear system.

States and equations

Let p=16p = \tfrac{1}{6} be the probability of rolling a 1. Define:

  • S0S_0: start, or the last roll was not a 1.
  • S1S_1: the last roll was a 1 (one consecutive 1 in progress).

Let μ0,μ1\mu_0,\mu_1 be the expected number of additional rolls needed to reach absorption (two consecutive 1s) from each state.

From S0S_0 — one roll is used; with probability 16\tfrac{1}{6} we move to S1S_1, with probability 56\tfrac{5}{6} we remain in S0S_0:

μ0=1+16μ1+56μ0.\mu_0 = 1 + \frac{1}{6}\mu_1 + \frac{5}{6}\mu_0.

From S1S_1 — one roll is used; with probability 16\tfrac{1}{6} we finish (0 more rolls), with probability 56\tfrac{5}{6} we return to S0S_0:

μ1=1+56μ0.\mu_1 = 1 + \frac{5}{6}\mu_0.

Solving the system

Rearranging the first equation:

μ056μ0=1+16μ1    μ0=6+μ1.\mu_0 - \frac{5}{6}\mu_0 = 1 + \frac{1}{6}\mu_1 \implies \mu_0 = 6 + \mu_1.

Substituting μ1=1+56μ0\mu_1 = 1 + \tfrac{5}{6}\mu_0:

μ0=7+56μ0    16μ0=7    μ0=42.\mu_0 = 7 + \frac{5}{6}\mu_0 \implies \frac{1}{6}\mu_0 = 7 \implies \mu_0 = 42.

Check: μ1=1+56(42)=36\mu_1 = 1 + \tfrac{5}{6}(42) = 36, and 6+36=426 + 36 = 42. ✓

Final answer

The expected number of rolls is 42\boxed{42}.

FreeProbabilityEasyFive RingsJane StreetSIG

Three independent random variables XX, YY, and ZZ are each uniformly distributed on [0,1][0, 1]. What is the probability that XX, YY, and ZZ are the side lengths of a valid triangle?

Solution

Idea

Work with the complement: a triple fails the triangle inequality if and only if one side is at least as large as the sum of the other two. The three failure events turn out to be mutually exclusive, so the failure probability is simply 3P(A)3P(A) for any one of them.

Setup

Let X,Y,ZiidUniform[0,1]X, Y, Z \overset{\text{iid}}{\sim} \text{Uniform}[0,1]. Define the failure events

A={X+YZ},B={X+ZY},C={Y+ZX}.A = \{X+Y \le Z\}, \quad B = \{X+Z \le Y\}, \quad C = \{Y+Z \le X\}.

Mutual Exclusivity of AA, BB, CC

Suppose ABA \cap B occurs: X+YZX+Y \le Z and X+ZYX+Z \le Y. Adding these inequalities gives 2X+Y+ZY+Z2X + Y + Z \le Y + Z, hence X0X \le 0. Since X0X \ge 0 a.s., this forces X=0X = 0, an event of probability zero. By symmetry, every pairwise intersection has measure zero, so AA, BB, CC are mutually exclusive a.s. Combined with symmetry of the joint distribution,

P(ABC)=P(A)+P(B)+P(C)=3P(A).P(A \cup B \cup C) = P(A) + P(B) + P(C) = 3\,P(A).

Computing P(A)P(A)

Condition on Z=zZ = z. The event {X+Yz}\{X + Y \le z\} within [0,1]2[0,1]^2 traces the right triangle {x0,y0,x+yz}\{x \ge 0,\, y \ge 0,\, x+y \le z\}, which has area z2/2z^2/2. Therefore

P(A)=01z22dz=1213=16.P(A) = \int_0^1 \frac{z^2}{2}\,dz = \frac{1}{2} \cdot \frac{1}{3} = \frac{1}{6}.

Final Answer

P(valid triangle)=1316=112=12.P(\text{valid triangle}) = 1 - 3 \cdot \frac{1}{6} = 1 - \frac{1}{2} = \boxed{\dfrac{1}{2}}.
FreeCombinatoricsEasyFive RingsJane StreetSIG

Eight points are placed on a circle. All chords connecting every pair of points are drawn. Four chords are then chosen uniformly at random. What is the probability that these four chords form a convex quadrilateral?

Solution

We have 8 points on a circle, so there are (82)=28\binom{8}{2}=28 chords in total. Choosing 4 chords uniformly at random gives (284)\binom{28}{4} equally likely outcomes.

For the 4 chords to form a convex quadrilateral, their union must be exactly the boundary of that quadrilateral. Because the points lie on a circle, any 4 distinct points determine a convex quadrilateral whose sides are the chords connecting consecutive points in cyclic order. Thus a favorable set of 4 chords corresponds precisely to choosing 4 of the 8 points and taking the four boundary chords of that set. There are (84)=70\binom{8}{4}=70 ways to choose the points, and each yields exactly one favorable 4‑chord set. No other set of 4 chords can form a convex quadrilateral, since any quadrilateral must have four distinct vertices, and on a circle the only non‑self‑intersecting 4‑cycle on four points is the boundary cycle.

Hence the probability is

P=(84)(284)=7020475=144095=2585.P = \frac{\binom{8}{4}}{\binom{28}{4}} = \frac{70}{20475} = \frac{14}{4095} = \frac{2}{585}.
FreeCombinatoricsEasyFive RingsJane StreetCitadel

A class contains 15 boys and 10 girls. The students line up in a row uniformly at random. What is the expected number of adjacent boy-girl pairs? For example, the lineup BGBBGGGBGGBBBBGBGBBGBBGBBBGBBGGGBGGBBBBGBGBBGBBGBB has 14 such adjacent pairs.

Solution

We have 15 boys and 10 girls, totaling 25 students. The students line up uniformly at random. We want the expected number of adjacent positions where one is a boy and the other is a girl (order BG or GB).

Let XX be the number of adjacent boy-girl pairs. For each adjacent pair of positions (i,i+1)(i, i+1) with i=1,,24i = 1,\dots,24, define an indicator IiI_i that the two students at those positions are of opposite sexes. Then X=i=124IiX = \sum_{i=1}^{24} I_i, and by linearity of expectation,

E[X]=i=124E[Ii]=i=124Pr(positions i and i+1 are opposite sexes).\mathbb{E}[X] = \sum_{i=1}^{24} \mathbb{E}[I_i] = \sum_{i=1}^{24} \Pr(\text{positions } i \text{ and } i+1 \text{ are opposite sexes}).

By symmetry, the probability is the same for every adjacent pair; denote it by pp. Hence E[X]=24p\mathbb{E}[X] = 24 \cdot p.

Now compute pp. There are 25×2425 \times 24 equally likely ordered assignments of two distinct students to the two positions. Favorable cases are (boy, girl) and (girl, boy). There are 15×10=15015 \times 10 = 150 ways to choose a boy then a girl, and 10×15=15010 \times 15 = 150 ways to choose a girl then a boy, for a total of 300300 favorable ordered pairs. Thus

p=30025×24=300600=12.p = \frac{300}{25 \times 24} = \frac{300}{600} = \frac{1}{2}.

Alternatively, Pr(boy then girl)=15251024=14\Pr(\text{boy then girl}) = \frac{15}{25} \cdot \frac{10}{24} = \frac{1}{4}, and Pr(girl then boy)=10251524=14\Pr(\text{girl then boy}) = \frac{10}{25} \cdot \frac{15}{24} = \frac{1}{4}, so p=14+14=12p = \frac{1}{4} + \frac{1}{4} = \frac{1}{2}.

Therefore,

E[X]=2412=12.\mathbb{E}[X] = 24 \cdot \frac{1}{2} = 12.
FreeBrainteaserEasyFive RingsJane StreetSIG

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.

FreeBrainteaserEasyFive RingsJane StreetSIG

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.

FreeStochasticEasyFive RingsJane StreetSIG

Consider a drunkard starting one pace from a precipice. On each move he steps toward the edge with chance 1/31/3 and away with chance 2/32/3; moves are independent. Determine the probability that he never goes over the edge, i.e., he escapes.

Solution

Let qkq_k be the probability that the drunkard eventually steps onto the precipice (ruin) when he is currently kk paces from the edge (k0k\ge 0). The precipice is at k=0k=0, so q0=1q_0=1. We want the survival probability 1q11-q_1.

For k1k\ge 1, condition on the first step:

qk=13qk1+23qk+1.q_k = \frac13 q_{k-1} + \frac23 q_{k+1}.

Multiply by 33 and rearrange to obtain the homogeneous linear recurrence

2qk+13qk+qk1=0.2q_{k+1} - 3q_k + q_{k-1} = 0.

The characteristic equation is 2r23r+1=02r^2-3r+1=0, which factors as (2r1)(r1)=0(2r-1)(r-1)=0, giving roots r=1r=1 and r=12r=\frac12. Hence

qk=A+B(12)k.q_k = A + B\Big(\frac12\Big)^k.

Boundary conditions.

  • At k=0k=0: q0=1    A+B=1q_0 = 1 \implies A + B = 1.
  • As kk\to\infty, the walk has a positive drift away from the edge (each step has expected change +13+\frac13). Therefore the probability of ever hitting 00 from far away tends to 00, i.e. limkqk=0\lim_{k\to\infty}q_k = 0. This forces A=0A=0, and consequently B=1B=1.

Thus qk=(12)kq_k = \big(\frac12\big)^k. In particular, the ruin probability starting one pace away is q1=12q_1 = \frac12. The probability that he never goes over the edge is

1q1=12.1 - q_1 = \frac12.
FreeCombinatoricsMediumFive RingsJane StreetSIG

Sandy has 55 pairs of socks in a drawer, each pair a distinct color. On Monday, she randomly picks two socks from the 1010 total; on Tuesday, she picks two from the remaining 88; on Wednesday, she picks two from the remaining 66. What is the probability that Wednesday is the first day she selects a matching pair?

Solution

Let MM, TT, WW be the events that Monday, Tuesday, Wednesday produce a matching pair, respectively. We want

P(McTcW)=P(Mc)P(TcMc)P(WMcTc).P(M^c \cap T^c \cap W) = P(M^c)\,P(T^c \mid M^c)\,P(W \mid M^c \cap T^c).

1. P(Mc)P(M^c). Total ways to choose 22 socks from 1010: (102)=45\binom{10}{2}=45. Matching pairs: 55 (one per color). So P(M)=5/45=1/9P(M)=5/45=1/9, hence

P(Mc)=119=89.P(M^c)=1-\frac19=\frac89.

2. P(TcMc)P(T^c \mid M^c). After a non‑matching Monday, two socks of different colors are removed. The remaining 88 socks consist of 33 colors with 22 socks each and 22 colors with 11 sock each. Total pairs from 88: (82)=28\binom{8}{2}=28. Only the three colors with 22 socks can produce a matching pair, so 33 matching pairs. Thus P(TMc)=3/28P(T\mid M^c)=3/28 and

P(TcMc)=1328=2528.P(T^c \mid M^c)=1-\frac{3}{28}=\frac{25}{28}.

3. P(WMcTc)P(W \mid M^c \cap T^c). After Monday and Tuesday are both non‑matching, the composition of the remaining 66 socks depends on how Tuesday's non‑matching pair was formed. Starting from the Monday state (33 colors with 22 socks, 22 colors with 11 sock), Tuesday's non‑matching pair can be of three types:

  • Case A: Both socks from the 22-sock colors. Number of ways: (32)22=12\binom{3}{2}\cdot2\cdot2 = 12. Resulting state: 11 color with 22 socks, 44 colors with 11 sock. Probability of a match on Wednesday: 1(62)=115\frac{1}{\binom{6}{2}} = \frac{1}{15}.
  • Case B: One sock from a 22-sock color and one from a 11-sock color. Number of ways: 3221=123\cdot2\cdot2\cdot1 = 12. Resulting state: 22 colors with 22 socks, 22 colors with 11 sock, 11 color with 00 socks. Probability of a match on Wednesday: 215\frac{2}{15}.
  • Case C: Both socks from the two 11-sock colors. Number of ways: 11. Resulting state: 33 colors with 22 socks, 22 colors with 00 socks. Probability of a match on Wednesday: 315=15\frac{3}{15} = \frac15.

Total non‑matching pairs on Tuesday: 12+12+1=2512+12+1 = 25, so the conditional probabilities of the cases given TcT^c are 1225,1225,125\frac{12}{25},\frac{12}{25},\frac{1}{25}. Hence

P(WMcTc)=1225115+1225215+125315=12+24+3375=39375=13125.P(W \mid M^c \cap T^c) = \frac{12}{25}\cdot\frac{1}{15} + \frac{12}{25}\cdot\frac{2}{15} + \frac{1}{25}\cdot\frac{3}{15} = \frac{12+24+3}{375} = \frac{39}{375} = \frac{13}{125}.

4. Multiply.

P(McTcW)=89252813125=82513928125=260031500=26315.P(M^c \cap T^c \cap W) = \frac{8}{9} \cdot \frac{25}{28} \cdot \frac{13}{125} = \frac{8\cdot25\cdot13}{9\cdot28\cdot125} = \frac{2600}{31500} = \frac{26}{315}.

Thus the desired probability is 26315\boxed{\frac{26}{315}}.

(One can verify by counting all sequences: total sequences (102)(82)(62)=18900\binom{10}{2}\binom{8}{2}\binom{6}{2}=18900, favorable sequences 52413=15605\cdot24\cdot13=1560, giving the same fraction.)

FreeProbabilityHardFive RingsJane StreetSIG

Two players share a fair coin and flip it repeatedly, recording the sequence of heads (HH) and tails (TT) that appears. The first player wins if HTHHTH occurs before HHTHHT; otherwise, the second player wins. What is the probability that the first player wins?

Solution

Idea

Track the game state as the longest suffix of the flip sequence that is a prefix of either target pattern. This yields a small Markov chain whose first-step equations determine the win probability exactly.

States and Transitions

Target patterns: Player 1 wins on HTHHTH; Player 2 wins on HHTHHT.

The transient states are {ε,H,HH,HT}\{\varepsilon,\, H,\, HH,\, HT\}, where ε\varepsilon denotes no useful suffix (start, or after a progress-resetting tail).

StateFlip HHFlip TT
ε\varepsilonHHε\varepsilon
HHHHHHHTHT
HHHHHHHHP2 wins
HTHTP1 winsε\varepsilon

Remark on HHHHHHH \xrightarrow{H} HH: after any run of heads, the longest suffix that prefixes a target is still HHHH (the length-2 prefix of HHTHHT).

System of Equations

Let psp_s denote the probability that Player 1 wins from state ss.

pε=12pH+12pε    pε=pH(1)p_{\varepsilon} = \tfrac{1}{2}p_H + \tfrac{1}{2}p_{\varepsilon} \implies p_{\varepsilon} = p_H \tag{1} pH=12pHH+12pHT(2)p_H = \tfrac{1}{2}p_{HH} + \tfrac{1}{2}p_{HT} \tag{2} pHH=12pHH+120    pHH=0(3)p_{HH} = \tfrac{1}{2}p_{HH} + \tfrac{1}{2}\cdot 0 \implies p_{HH} = 0 \tag{3} pHT=121+12pε(4)p_{HT} = \tfrac{1}{2}\cdot 1 + \tfrac{1}{2}\,p_{\varepsilon} \tag{4}

Equation (3) reflects that HHHH is a trap: every additional HH keeps the game in HHHH, and the inevitable first TT completes HHTHHT, so Player 1 cannot win from HHHH.

Solution

Substituting (3)(3) into (2)(2):

pH=12pHT.p_H = \tfrac{1}{2}p_{HT}.

Combined with (1)(1), we have pε=pH=12pHTp_{\varepsilon} = p_H = \tfrac{1}{2}p_{HT}. Substituting into (4)(4):

pHT=12+1212pHT=12+14pHT.p_{HT} = \frac{1}{2} + \frac{1}{2}\cdot\frac{1}{2}p_{HT} = \frac{1}{2} + \frac{1}{4}p_{HT}. 34pHT=12    pHT=23.\frac{3}{4}p_{HT} = \frac{1}{2} \implies p_{HT} = \frac{2}{3}. pε=1223=13.p_{\varepsilon} = \frac{1}{2}\cdot\frac{2}{3} = \boxed{\dfrac{1}{3}}.

The game begins in state ε\varepsilon, so Player 1 wins with probability 13\dfrac{1}{3}.

FreeBrainteaserHardFive RingsJane StreetSIG

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.

FreeMental mathWarmupFive RingsJane StreetSIG

A racecar completes three laps of a track. The first lap is driven at 100100 mph, the second at 150150 mph, and the third at 200200 mph. What is the average speed (in mph) over the entire three laps?

Solution

The average speed is total distance divided by total time, not the arithmetic mean of the speeds. Let the length of one lap be dd miles. The times for each lap are:

  • Lap 1: t1=d100t_1 = \frac{d}{100} hours
  • Lap 2: t2=d150t_2 = \frac{d}{150} hours
  • Lap 3: t3=d200t_3 = \frac{d}{200} hours

Total distance: 3d3d miles. Total time: t1+t2+t3=d(1100+1150+1200)t_1 + t_2 + t_3 = d\left(\frac{1}{100} + \frac{1}{150} + \frac{1}{200}\right).

Hence the average speed vv is

v=3dd(1100+1150+1200)=31100+1150+1200.v = \frac{3d}{d\left(\frac{1}{100} + \frac{1}{150} + \frac{1}{200}\right)} = \frac{3}{\frac{1}{100} + \frac{1}{150} + \frac{1}{200}}.

Compute the denominator using a common denominator of 600600:

1100+1150+1200=6600+4600+3600=13600.\frac{1}{100} + \frac{1}{150} + \frac{1}{200} = \frac{6}{600} + \frac{4}{600} + \frac{3}{600} = \frac{13}{600}.

Therefore,

v=313600=360013=180013138.46 mph.v = \frac{3}{\frac{13}{600}} = 3 \cdot \frac{600}{13} = \frac{1800}{13} \approx 138.46\text{ mph}.
ProbabilityWarmupFive RingsJane StreetSIG

Three ants are placed, one on each side of an equilateral triangle. Each ant independently chooses one of the two adjacent vertices with equal probability and moves there. What is the probability that no two ants meet at a vertex?

Approach

Label the vertices and assign each ant to the side opposite its starting vertex, then list the possible moves.

ProbabilityWarmupFive RingsJane StreetSIG

On a game show, you choose one of three doors at random. Behind one door is a car; behind the other two are goats. The host, who knows what is behind each door, then opens a different door that reveals a goat. You are given the option to either stick with your original door or switch to the other unopened door. What is the probability of winning the car if you switch?

Approach

Consider the probability that your initial guess was wrong, and what happens if you switch in that case.

ProbabilityWarmupFive RingsJane StreetSIG

A witness claims that a trader leaked intellectual property from a quant firm. Witnesses are correct 2/32/3 of the time. At the firm, 2/32/3 of the employees are traders and 1/31/3 are researchers. Given the witness's statement, what is the probability that the leaker was a trader?

Approach

Identify the prior probabilities for the leaker being a trader versus a researcher.

Other firms & topics

Frequently asked questions

How many Five Rings interview questions are on QuantGrind?

884 questions are tagged to Five Rings across our 2,516-problem set, concentrated in probability, combinatorics, and brainteasers. 60 are free to preview on this page; the full set unlocks with a membership, each with hints, the accepted answer, and a worked solution.

How hard is the Five Rings quant interview?

Expect a phone screen heavy on mental math and probability, then an onsite or final round mixing brainteasers, market-making games, and topic depth. The bar is less about exotic tricks and more about speed, accuracy, and explaining your thinking clearly under time pressure.

How should I prepare for the Five Rings quant interview?

Practice timed, out loud, and without a calculator. Rebuild each answer from first principles rather than recognizing it, and review the ones you got slowly — interview signal comes from how fast and cleanly you reason, not whether you've seen the exact prompt before.

Practice the full Five Rings set

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