Groups
The LCP (Longest Common Prefix) array, built alongside a suffix array, unlocks fast solutions to problems like longest repeated substring, number of distinct substrings, and longest common substring.
A suffix array stores the starting indices of all suffixes of a string in lexicographic order.