Longest Repeated Substring leetcode
Given a string s, find the longest substring that appears more than once in s.
For example,
For example,
- s =
"abcabcaacb", return"abca" - s =
"aababa", return"aba"
Read full article from Longest Repeated Substring | Matt Huapeng's coding puzzle Blog
No comments:
Post a Comment