Skip to content

Commit 82db04b

Browse files
committed
fixes
1 parent ae6f5ee commit 82db04b

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
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), x = 6;
14+
const int n = sz(s), b = 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 *= x) {
17+
for (int j = 1; j <= n; j *= b) {
1818
vi x(sa_inv);
1919
auto cmp = [&](int i1, int i2) {
20-
rep(k, 0, x) {
20+
rep(k, 0, b) {
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;

tests/scripts/grep_clangformat_cppcheck.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ grep --extended-regexp "template\s?<typename" --recursive ../library/ && exit 1
1616
echo "check 1 instead of true"
1717
grep "true" --recursive ../library/ && exit 1
1818

19-
echo "check 0 instead of false"
20-
grep "false" --recursive ../library/ && exit 1
21-
2219
echo "check ll instead of long long or int64_t"
2320
grep "long long" --recursive ../library/ && exit 1
2421
grep "int64_t" --recursive ../library/**/*.hpp | grep "uint64_t" --invert-match && exit 1

0 commit comments

Comments
 (0)