Question: In a string, distance between two symbols is the number of symbols between them plus one. For example, in a string xyyx, y is at
In a string, distance between two symbols is the number of symbols between them plus one. For example, in a string xyyx, y is at distance 1 from another y, and x is at distance 3 from another x. Find the number of strings of length n using at most k distinct symbols, such that the minimal distance between any two identical symbols is k.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
