GATE Computer ScienceVery hardGATE CS · ISRO

How many binary strings of length 12 contain neither the substring 11 nor the substring 000?

  1. A. 55
  2. B. 64
  3. C. 41
  4. D. 49

Correct answer: D. 49

Enumerating all 4096 strings (or using the block structure 1/0/00 separated appropriately) gives 49.

More Discrete Mathematics questions

Exams that ask this topic