Mathematics (JEE)Very hardGATE CS · ISI

A fair coin is tossed repeatedly. What is the probability that the pattern HTH appears before the pattern HHH does?

  1. A. 2/5
  2. B. 1/2
  3. C. 3/5
  4. D. 1/8

Correct answer: C. 3/5

Track the longest suffix that is a prefix of HTH or HHH (states: none, H, HT, HH) and solve the first-step equations. The complement, that HHH comes first, is 1 minus this value, which is not the answer.

More Permutations, Combinations and Probability questions

Exams that ask this topic