Mathematics (JEE)Very hardCodeforces Div2 C
How many strings of length 6 over {0, 1, 2} contain no substring 01 and do not end with the symbol 2?
- A. 233
- B. 377
- C. 729
- D. 466
Correct answer: A. 233
Enumerating all 729 strings and keeping those without the substring 01 whose last symbol is 0 or 1 leaves 233.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many ordered pairs (A, B) of subsets of {1, 2, 3, 4} satisfy A union B = {1, 2, 3, 4} and A intersect B = empty set?
- How many ordered pairs (A, B) of subsets of {1, 2, 3, 4, 5} satisfy A is a subset of B and |B| = 3?
- How many ordered pairs (A, B) of subsets of {1, 2, 3, 4} have |A| = |B|?
- How many binary strings of length 7 contain neither the substring 000 nor the substring 111?
- How many permutations p of {1, 2, 3, 4, 5} have exactly one interior peak, meaning exactly one index i in {2, 3, 4} with p(i-1) < p(i) >…
- How many 3-element subsets of {1, 2, ..., 9} have elements summing to exactly 15?