StringsExplained
Suffix Array
The sorted list of all suffixes of a string.
Time
O(n log n) build
Extra space
O(n)
Use it for
Substring search, repeats, compression.
The sorted list of all suffixes of a string.
Time
O(n log n) build
Extra space
O(n)
Use it for
Substring search, repeats, compression.