We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2cb30b commit df7e55cCopy full SHA for df7e55c
library/strings/suffix_array/suffix_array_short.hpp
@@ -18,9 +18,9 @@ auto sa_short(const auto& s) {
18
vi x(sa_inv);
19
auto cmp = [&](int i1, int i2) {
20
rep(k, 0, b) {
21
- int a = i1 + j * k < n ? x[i1 + j * k] : -1;
22
- int b = i2 + j * k < n ? x[i2 + j * k] : -1;
23
- if (a != b) return a < b;
+ int y = i1 + j * k < n ? x[i1 + j * k] : -1;
+ int z = i2 + j * k < n ? x[i2 + j * k] : -1;
+ if (y != z) return y < z;
24
}
25
return false;
26
};
0 commit comments