Counting 8-bit strings

How many 88-bit binary strings (each character 00 or 11) either begin with a 11 or end with the two characters 0000 (or both)?

Show hints (2)+
  1. Count "begins with 1" and "ends with 00" separately by fixing those bits.
  2. Subtract the strings satisfying both (inclusion–exclusion).

Answer

Reveal answer →

160

Create a free account to see the full worked solution and track your progress.

Interview format: Market Maker, Hedge Fund Quant

Related questions