← JPMorgan Chase Interview Insights

JPMorgan Chase·Software Engineer·Technical Phone Screen·Intermediate

Intermediate
Jun 2026

Summary

Quant interview at JP Morgan with a classic probability puzzle. Nothing too wild but you need to actually set up the math cleanly or it falls apart fast.

Questions Asked (1)

Q1

Two players alternate flipping a fair coin, with player A going first. The game ends when someone flips heads. What is the probability that player A wins? Set up the geometric series and derive the closed-form answer.

Algorithms & Data StructuresTechnical Trade-offs
Author's notes

The setup is straightforward enough but I second-guessed myself on whether to condition on each round separately or just write out the full series from the start.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Model the game as a sequence of rounds where each round consists of both players flipping once, and A wins if A flips heads first in a round. Compute the probability of A winning in the first round, then use the geometric series for subsequent rounds, summing the infinite series to get the closed-form answer.

Pro tip: After deriving the answer, mention that the same result can be obtained by solving a recursive equation: P(A wins) = 1/2 + (1/4)P(A wins), which gives P = 2/3. This shows you can think both iteratively and recursively, a valuable skill in software engineering.

1. Define the events and probabilities

Let p be the probability that A wins. In a single round (A flips then B flips), A wins immediately if A flips heads (prob 1/2). If both flip tails (prob 1/4), the game resets to the starting state.

2. Set up the geometric series

The probability that A wins on the first round is 1/2. The probability that A wins on the second round is (1/4)*(1/2), on the third round (1/4)^2*(1/2), etc. So p = sum_{k=0}^∞ (1/2)*(1/4)^k.

3. Sum the series

The series is geometric with first term a = 1/2 and common ratio r = 1/4. Sum = a/(1-r) = (1/2)/(3/4) = 2/3.

4. Verify with recursion (optional)

Alternatively, set up the equation p = 1/2 + (1/4)p, solve to get p = 2/3. This confirms the result and demonstrates an alternative approach.

Key Points to Mention

  • Independence of coin flips
  • Geometric series formula for infinite sum
  • Probability of A winning in a single round (1/2)
  • Probability of a round resulting in no winner (1/4)
  • Recursive equation approach as a cross-check
  • Closed-form answer: 2/3

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.