GATE 2025 set1 Computer Science and Information Technology question: Let S be the set of all ternary strings defined over the alphabet \ a, b, c\ . Consider…
Let be the set of all ternary strings defined over the alphabet . Consider all strings in that contain at least one occurrence of two consecutive symbols, that is, “aa”, “bb” or “cc”. The number of such strings of length 5 that are possible is _______. (Answer in integer)
Show answer
Official answer: 195