# Find the longest recurring substring [duplicate]

Given a string of no more than 255 characters, find a function that returns the longest recurring substring. An example would be:

• Are overlapping occurrences counted as distinct? For example, in the string aabbaabba, is the substring aabba recurring? Feb 6 '15 at 11:53