ML Engineer MasterClass (April) | 6 seats left

Coin Flipping Sequences

Coin Flipping Sequences

Problem Statement

The Question

Interview question: A fair coin is flipped repeatedly. How many flips do you expect before the sequence HHT appears for the first time? Now suppose I told you HHH takes longer than HHT on average. Does that surprise you? Can you prove it?

This problem shows up at Jane Street, Citadel, DE Shaw, and HRT, typically in a first or second round. It's a standard-difficulty...

Unlock the full lesson

Created by interviewers from Google and Meta. Master every concept you need to land your dream role.

All courses — Data, ML/AI & Quant
Unlimited coding submissions
Hands-on projects with real datasets
Detailed solutions in text & video
Monthly content updates
Join Premium