Find the longest substring that appears at least twice in a string
Determine if a string can be segmented into space-separated words from a dictionary.