There the problem is to find a string that contains all subsets of $\Sigma$$S \subseteq\Sigma$ as substrings of length $|\Sigma|$ consecutive letters$|S|$. Note two differences: only the maximal case (all subsets), and the substrings are not allowedhave to be longer thanof minimal length $|\Sigma|$$|S|$. In the current question such solutionslonger substrings are allowed, for example using substring $1234245$ for the subset $12345$.
OOPS. Fix the condition on substring length: not |Sigma| but |S| for each subset S.
Jukka Kohonen
- 4.2k
- 2
- 21
- 49
Jukka Kohonen
- 4.2k
- 2
- 21
- 49
Jukka Kohonen
- 4.2k
- 2
- 21
- 49