diff options
| author | Gloria Mundi <gloria@gloria-mundi.eu> | 2024-11-20 01:54:02 +0100 |
|---|---|---|
| committer | Gloria Mundi <gloria@gloria-mundi.eu> | 2024-11-20 01:54:02 +0100 |
| commit | fc6da254c57a94cda4c8f61b8d9daa507dcdfdda (patch) | |
| tree | 403a83862810b585dfa28d211e0d8973cc589ea7 /content/datastructures/sparseTable.cpp | |
| parent | c9365cd20105e36bae0b2145b69f94f6f93195d6 (diff) | |
rename sparse table query function: queryIdempotent -> query
Diffstat (limited to 'content/datastructures/sparseTable.cpp')
| -rw-r--r-- | content/datastructures/sparseTable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/datastructures/sparseTable.cpp b/content/datastructures/sparseTable.cpp index 44989ab..5455ef5 100644 --- a/content/datastructures/sparseTable.cpp +++ b/content/datastructures/sparseTable.cpp @@ -16,7 +16,7 @@ struct SparseTable { st[j + 1][i] = better(st[j][i] , st[j][i + (1 << j)]); }}} - int queryIdempotent(int l, int r) { + int query(int l, int r) { if (r <= l) return -1; int j = __lg(r - l); //31 - builtin_clz(r - l); return better(st[j][l] , st[j][r - (1 << j)]); |
