☆犬☆ 發問時間: 社會與文化語言 · 4 年前

a binary string of length 10 is made up of 10 bits(e.g., 1100111100). How many such strings either with 110xxxxxxx or xx000xxxxx?

1 個解答

評分
  • 4 年前
    最佳解答

    string count with A pattern or with B pattern = string count with A pattern + string count with B pattern - string count with A and B pattern.

    So, string count with 110xxxxxxx or xx000xxxxx = 10^7 + 10^7 - 10^5

還有問題?馬上發問,尋求解答。