问题
How to find the sum of length of Longest Common Prefixes of all pairs of substrings of a given string. For eg answer for string "aba" is 8. |s|<=1e5.
来源:https://stackoverflow.com/questions/42912065/sum-of-lcp-of-all-pairs-of-substrings-of-a-given-string