Skip to content

Commit ae6f5ee

Browse files
committed
nameing nit
1 parent d263a75 commit ae6f5ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/strings/suffix_array/suffix_array_short.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
//! @time O(n * log^2(n))
1212
//! @space O(n)
1313
auto sa_short(const auto& s) {
14-
const int n = sz(s), K = 6;
14+
const int n = sz(s), x = 6;
1515
vi sa(n), sa_inv(all(s)), lcp(n - 1);
1616
iota(all(sa), 0);
17-
for (int j = 1; j <= n; j *= K) {
17+
for (int j = 1; j <= n; j *= x) {
1818
vi x(sa_inv);
1919
auto cmp = [&](int i1, int i2) {
20-
rep(k, 0, K) {
20+
rep(k, 0, x) {
2121
int a = i1 + j * k < n ? x[i1 + j * k] : -1;
2222
int b = i2 + j * k < n ? x[i2 + j * k] : -1;
2323
if (a != b) return a < b;

0 commit comments

Comments
 (0)