summaryrefslogtreecommitdiff
path: root/content/graph/LCA_sparse.cpp
diff options
context:
space:
mode:
authorGloria Mundi <gloria@gloria-mundi.eu>2024-11-20 01:54:02 +0100
committerGloria Mundi <gloria@gloria-mundi.eu>2024-11-20 01:54:02 +0100
commitfc6da254c57a94cda4c8f61b8d9daa507dcdfdda (patch)
tree403a83862810b585dfa28d211e0d8973cc589ea7 /content/graph/LCA_sparse.cpp
parentc9365cd20105e36bae0b2145b69f94f6f93195d6 (diff)
rename sparse table query function: queryIdempotent -> query
Diffstat (limited to 'content/graph/LCA_sparse.cpp')
-rw-r--r--content/graph/LCA_sparse.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/graph/LCA_sparse.cpp b/content/graph/LCA_sparse.cpp
index 22a9082..1da8876 100644
--- a/content/graph/LCA_sparse.cpp
+++ b/content/graph/LCA_sparse.cpp
@@ -25,7 +25,7 @@ struct LCA {
int getLCA(int u, int v) {
if (first[u] > first[v]) swap(u, v);
- return visited[st.queryIdempotent(first[u], first[v] + 1)];
+ return visited[st.query(first[u], first[v] + 1)];
}
ll getDepth(int v) { return depth[first[v]]; }