summaryrefslogtreecommitdiff
path: root/content/graph
diff options
context:
space:
mode:
Diffstat (limited to 'content/graph')
-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]]; }