Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What are examples of valid ternary strings?
Think of combinations using 0, 1 and 2.
Define a ternary string?
Consider how binary strings only use two characters.
What characters are used in ternary strings?
Recall the definition of ternary.
Are all sequences of length n valid if they contain '00'?
Consider what makes a sequence valid.
Prove the count of valid ternary strings of length n including at least one occurrence of '11'.
Analyze smaller lengths and use their counts.
Construct a ternary string generator that validates occurrences while respecting string properties.
Use data structures that efficiently manage counts.
4 more questions in this section. Enroll free to practise them all.
Enroll free