Return the longest happy prefix of a string — a non-empty prefix that is also a suffix without being the whole string — or an empty string when none exists.
Loading content...