Distinctness

Limits: 500ms, 256 MB

A substring of string S is another string S’ which occurs in string S. For example: S = aaba and one of it’s substring S’ = ab, because S’ occurs in S at the position 3. (1 indexed).


This is a companion discussion topic for the original entry at https://toph.co/p/distinctness