PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Software Engineering Fundamentals/Bnp

Find expected tosses to see a coin pattern

Last updated: Mar 29, 2026

Quick Overview

Assesses probabilistic reasoning and stochastic-process modeling skills, focusing on expected stopping times for pattern occurrences in repeated independent trials and related concepts like state-space representation and overlap effects.

  • easy
  • Bnp
  • Software Engineering Fundamentals
  • Data Scientist

Find expected tosses to see a coin pattern

Company: Bnp

Role: Data Scientist

Category: Software Engineering Fundamentals

Difficulty: easy

Interview Round: Technical Screen

A fair coin is tossed repeatedly until a target length-3 pattern appears as a **consecutive** substring (e.g., HHH, HTH, HTT, etc.). 1) Describe a general method to compute the expected number of tosses to see a given pattern. 2) Compute the expected number of tosses for **HHH** and for **HTH**.

Quick Answer: Assesses probabilistic reasoning and stochastic-process modeling skills, focusing on expected stopping times for pattern occurrences in repeated independent trials and related concepts like state-space representation and overlap effects.

Related Interview Questions

  • Explain and compute option delta - Bnp (easy)
  • How do you split coins to match heads? - Bnp (easy)
  • Compute expected max/min of n die rolls - Bnp (easy)
Bnp logo
Bnp
Jan 5, 2026, 12:00 AM
Data Scientist
Technical Screen
Software Engineering Fundamentals
1
0

A fair coin is tossed repeatedly until a target length-3 pattern appears as a consecutive substring (e.g., HHH, HTH, HTT, etc.).

  1. Describe a general method to compute the expected number of tosses to see a given pattern.
  2. Compute the expected number of tosses for HHH and for HTH .

Solution

Show

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More Software Engineering Fundamentals•More Bnp•More Data Scientist•Bnp Data Scientist•Bnp Software Engineering Fundamentals•Data Scientist Software Engineering Fundamentals
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.