正文
增加 1 行删除 1 行
2 行未改动3456789101191 行未改动2 行未改动> But in my mind I whisper every single word you say---The Suffix Array (SA) is used to solve the following problem:> You are given a string $s$ of length $n$ (0-indexed); sort all of the $n$ suffixes of $s$, in lexicographically increasing order.>> Output the answer as a permutation $p$, where $p_x=i$ indicates that the suffix $s[i\cdots (n-1)]$ is the $(x+1)$-th smallest among all suffixes.91 行未改动2 行未改动3456789101191 行未改动2 行未改动> But in my mind I whisper every single word you say---The Suffix Array (SA) is used to address the following problem:> You are given a string $s$ of length $n$ (0-indexed); sort all of the $n$ suffixes of $s$, in lexicographically increasing order.>> Output the answer as a permutation $p$, where $p_x=i$ indicates that the suffix $s[i\cdots (n-1)]$ is the $(x+1)$-th smallest among all suffixes.91 行未改动