PracHub
QuestionsLearningGuidesInterview 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)
|Home/Software Engineering Fundamentals/Bnp

Find expected tosses to see a coin pattern

Bnp logo
Bnp
Jan 5, 2026, 12:00 AM
easyData ScientistTechnical ScreenSoftware 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 .
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

Write your answer

Your first approved answer each day earns 20 XP.

Sign in to write your answer.
PracHub

Master your tech interviews with 9,000+ real questions from top companies.

Product

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

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding 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.