Mathematics (JEE)ModerateGATE CS

How many binary strings of length 6 consist of exactly two runs (maximal blocks of equal digits)?

  1. A. 6
  2. B. 5
  3. C. 12
  4. D. 10

Correct answer: D. 10

Choose the first digit in 2 ways and the place to cut the string among the 5 gaps: 2 × 5 = 10. Option 12 double-counts the choice of the first digit.

More Permutations, Combinations and Probability questions

Exams that ask this topic