rangell's blog

By rangell, history, 8 years ago, In English

Hi guys

I'm trying to solve a strings problem. Where it is necessary to determine the length of the smallest string T that is not a substring S.

Σ = {0, 1}

Size of text S is: 1 ≤ S ≤ 105

Exemple:

S = "011101001", 000 is not a substring of S, so the leght is 3.

Someone can help me?

Full text and comments »

  • Vote: I like it
  • +3
  • Vote: I do not like it