← 返回 google 的题目列表Find Longest Duplicate Substring
类型:online_judge
Given a string s, find the longest duplicated substring in s. If there are multiple such substrings, return the one with the smallest starting position. The string may be long, how can you find the answer in a constrained time?
Example
Input
banana