Placement AptitudeHardTCS NQT · Infosys

How many strings of length 6 over the letters A, B, C have no two neighbouring letters equal?

  1. A. 96
  2. B. 729
  3. C. 120
  4. D. 48

Correct answer: A. 96

The first letter has 3 choices and every later letter must differ from the one before it: 2 choices each. 3 × 2⁵ = 96.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic