Representative quant-interview questions tagged to Hudson River Trading, concentrated in probability, combinatorics, and coding. Preview a free set below, then drill the full bank with hints and worked solutions.
147 Hudson River Trading questions · 14 free to preview · 2,516 problems total
FreeProbabilityEasyHudson River TradingJane StreetSIG
A fair coin is flipped repeatedly until the first heads appears. The payout is 2n dollars if the first heads occurs on the nth toss. Determine the fair value of this game. If the expected value is infinite, output −1.
Solution
Let N be the number of coin flips until the first heads appears. Since the coin is fair, N follows a geometric distribution with success probability 1/2: P(N=n)=(1/2)n for n=1,2,3,… (the first n−1 flips are tails and the nth flip is heads). The payout when N=n is 2n dollars. The expected value of the payout is
FreeCombinatoricsEasyHudson River TradingJane 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 (28)=28 chords in total. Choosing 4 chords uniformly at random gives (428) 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 (48)=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.
FreeStochasticEasyHudson River TradingJane StreetSIG
Consider a drunkard starting one pace from a precipice. On each move he steps toward the edge with chance 1/3 and away with chance 2/3; moves are independent. Determine the probability that he never goes over the edge, i.e., he escapes.
Solution
Let qk be the probability that the drunkard eventually steps onto the precipice (ruin) when he is currently k paces from the edge (k≥0). The precipice is at k=0, so q0=1. We want the survival probability 1−q1.
For k≥1, condition on the first step:
qk=31qk−1+32qk+1.
Multiply by 3 and rearrange to obtain the homogeneous linear recurrence
2qk+1−3qk+qk−1=0.
The characteristic equation is 2r2−3r+1=0, which factors as (2r−1)(r−1)=0, giving roots r=1 and r=21. Hence
qk=A+B(21)k.
Boundary conditions.
At k=0: q0=1⟹A+B=1.
As k→∞, the walk has a positive drift away from the edge (each step has expected change +31). Therefore the probability of ever hitting 0 from far away tends to 0, i.e. limk→∞qk=0. This forces A=0, and consequently B=1.
Thus qk=(21)k. In particular, the ruin probability starting one pace away is q1=21. The probability that he never goes over the edge is
FreeCombinatoricsMediumHudson River TradingJane StreetSIG
Sandy has 5 pairs of socks in a drawer, each pair a distinct color. On Monday, she randomly picks two socks from the 10 total; on Tuesday, she picks two from the remaining 8; on Wednesday, she picks two from the remaining 6. What is the probability that Wednesday is the first day she selects a matching pair?
Solution
Let M, T, W be the events that Monday, Tuesday, Wednesday produce a matching pair, respectively. We want
P(Mc∩Tc∩W)=P(Mc)P(Tc∣Mc)P(W∣Mc∩Tc).
1. P(Mc). Total ways to choose 2 socks from 10: (210)=45. Matching pairs: 5 (one per color). So P(M)=5/45=1/9, hence
P(Mc)=1−91=98.
2. P(Tc∣Mc). After a non‑matching Monday, two socks of different colors are removed. The remaining 8 socks consist of 3 colors with 2 socks each and 2 colors with 1 sock each. Total pairs from 8: (28)=28. Only the three colors with 2 socks can produce a matching pair, so 3 matching pairs. Thus P(T∣Mc)=3/28 and
P(Tc∣Mc)=1−283=2825.
3. P(W∣Mc∩Tc). After Monday and Tuesday are both non‑matching, the composition of the remaining 6 socks depends on how Tuesday's non‑matching pair was formed. Starting from the Monday state (3 colors with 2 socks, 2 colors with 1 sock), Tuesday's non‑matching pair can be of three types:
Case A: Both socks from the 2-sock colors. Number of ways: (23)⋅2⋅2=12. Resulting state: 1 color with 2 socks, 4 colors with 1 sock. Probability of a match on Wednesday: (26)1=151.
Case B: One sock from a 2-sock color and one from a 1-sock color. Number of ways: 3⋅2⋅2⋅1=12. Resulting state: 2 colors with 2 socks, 2 colors with 1 sock, 1 color with 0 socks. Probability of a match on Wednesday: 152.
Case C: Both socks from the two 1-sock colors. Number of ways: 1. Resulting state: 3 colors with 2 socks, 2 colors with 0 socks. Probability of a match on Wednesday: 153=51.
Total non‑matching pairs on Tuesday: 12+12+1=25, so the conditional probabilities of the cases given Tc are 2512,2512,251. Hence
FreeProbabilityHardHudson River TradingJane StreetSIG
Two players share a fair coin and flip it repeatedly, recording the sequence of heads (H) and tails (T) that appears. The first player wins if HTH occurs before HHT; 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 HTH; Player 2 wins on HHT.
The transient states are {ε,H,HH,HT}, where ε denotes no useful suffix (start, or after a progress-resetting tail).
State
Flip H
Flip T
ε
H
ε
H
HH
HT
HH
HH
P2 wins
HT
P1 wins
ε
Remark on HHHHH: after any run of heads, the longest suffix that prefixes a target is still HH (the length-2 prefix of HHT).
System of Equations
Let ps denote the probability that Player 1 wins from state s.
Equation (3) reflects that HH is a trap: every additional H keeps the game in HH, and the inevitable first T completes HHT, so Player 1 cannot win from HH.
Solution
Substituting (3) into (2):
pH=21pHT.
Combined with (1), we have pε=pH=21pHT. Substituting into (4):
FreeCodingMediumHudson River TradingCitadelJump Trading
In C++, virtual functions incur a runtime penalty. Two common alternatives to mitigate this are using a function pointer or templates. Evaluate whether these approaches can improve performance, and decide if virtual functions are ultimately worthwhile despite their overhead.
Solution
A virtual function call in C++ adds overhead from an indirect branch, loss of inlining and subsequent compiler optimisations, and the per‑object vptr.
Function pointer alternative – Replacing the virtual method with a stored function pointer removes the vtable indirection but still requires an indirect call; the call cost itself is unchanged. Inlining remains impossible unless the compiler can prove the pointer value at compile time. For truly dynamic dispatch, performance is on par with virtual functions, while the code loses type safety and polymorphic extensibility.
Templates (CRTP / static polymorphism) – By resolving the target type at compile time, templates enable direct calls that are fully inlineable. This eliminates all dispatch overhead and can yield large speedups for small, frequently‑called operations. The trade‑off is the loss of runtime polymorphism: all concrete types must be known at compile time. Template instantiation may also increase binary size and compilation time.
Performance verdict – In hot inner loops where the type is statically known, templates consistently outperform virtual functions. Function pointers rarely provide a meaningful advantage; they replace one indirection with another while sacrificing design clarity. In most real‑world code, virtual function overhead is dwarfed by other costs (memory latency, I/O, algorithmic complexity) and modern branch predictors hide much of the remaining penalty.
Conclusion – Virtual functions remain the right default for runtime polymorphism. They should be replaced with templates only when profiling identifies a hot virtual call site and compile‑time dispatch is feasible. The flexibility and maintainability they offer are well worth their overhead in the vast majority of code.
ProbabilityEasyHudson River TradingFive RingsJump Trading
Ten chords on a circle have endpoints positioned uniformly and independently along the circumference. Calculate the expected number of crossing points.
Approach
Decompose the total number of crossings into a sum over unordered pairs of chords.
14 slips numbered 1−14 are placed in a random order. A position i is called a local maximum if the slip there is strictly greater than each of its immediate neighbors. Find the expected number of local maxima. For example, with 6 numbers the arrangement 513246 has local maxima at positions 1, 3, and 6, giving 3 local maxima.
Approach
Write the total number of local maxima as a sum of indicator random variables, one for each position.
CombinatoricsEasyHudson River TradingJane StreetSIG
In a single-elimination tournament with 2n strictly ranked teams (higher always beats lower), the bracket is drawn uniformly at random. Find the probability that the top-ranked and second-ranked teams play each other in the final.
Verification. For a tournament with n = 2 (i.e., 4 teams total), what is the probability that the top two teams meet in the final?
Approach
Since the top-ranked team beats everyone, it always reaches the final. What must be true about the bracket placement of the second-ranked team for it to also reach the final?
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.
ProbabilityMediumHudson River TradingJane StreetSIG
Let h and t be positive integers. A fair coin is flipped repeatedly until we observe either h more heads than tails or t more tails than heads. What is the expected number of flips required? Compute the answer for t=10 and h=8.
Approach
Model the difference between cumulative heads and cumulative tails as a symmetric random walk starting at 0, stopping when it first hits $+h$ or $-t$.
ProbabilityMediumHudson River TradingJane StreetCitadel
A fair 6-sided die is rolled until a 6 appears. Given that every roll shows an even number, what is the expected number of rolls (including the final roll that yields the 6)?
Approach
Compute the unconditional probability that every roll is even.
You repeatedly roll a fair die until a 5 or 6 appears. If a 5 appears, you receive the sum of all previous rolls (excluding the 5). If a 6 appears, you receive nothing. At any point before the game ends, you may choose to stop and cash out the sum of all rolls so far. Assuming optimal play, what is the expected payout? Round to the nearest hundredth.
Approach
Model the game as a Markov decision process where the state is the current sum of rolls so far.
ProbabilityHardHudson River TradingJane StreetCitadel
Jesse has an urn containing 2 white and 3 black balls. He draws balls at random without replacement and may stop at any time. Each white ball drawn earns him $1, while each black ball drawn costs him $1. If Jesse follows the optimal stopping strategy, what is his expected net gain (or loss)?
Approach
Model the state by the number of white and black balls remaining, and define the optimal expected additional gain from that state.
How many Hudson River Trading interview questions are on QuantGrind?
147 questions are tagged to Hudson River Trading across our 2,516-problem set, concentrated in probability, combinatorics, and coding. 14 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 Hudson River Trading 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 Hudson River Trading 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 Hudson River Trading set
Every question comes with progressive hints, the accepted answer, and a full worked solution. 100 free to start — no card required.