diff options
| author | MZuenni <michi.zuendorf@gmail.com> | 2022-11-30 12:43:27 +0100 |
|---|---|---|
| committer | MZuenni <michi.zuendorf@gmail.com> | 2022-11-30 12:43:27 +0100 |
| commit | 03788f48be2634c36cd19ba25b0a851685b9c877 (patch) | |
| tree | ef430668558366afe95d958d26250361f5452666 /string | |
| parent | 99259d60cb345eae15211397f3199aa86ac2bceb (diff) | |
use all macro
Diffstat (limited to 'string')
| -rw-r--r-- | string/suffixArray.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/string/suffixArray.cpp b/string/suffixArray.cpp index 66b0ee9..2650d72 100644 --- a/string/suffixArray.cpp +++ b/string/suffixArray.cpp @@ -12,7 +12,7 @@ struct SuffixArray { for (int i = 0; i < n; i++) L[i] = {{P[step-1][i], i+count < n ? P[step-1][i+count] : -1}, i}; - sort(L.begin(), L.end()); + sort(all(L)); for (int i = 0; i < n; i++) { P[step][L[i].second] = i > 0 && L[i].first == L[i-1].first ? |
