From fc6da254c57a94cda4c8f61b8d9daa507dcdfdda Mon Sep 17 00:00:00 2001 From: Gloria Mundi Date: Wed, 20 Nov 2024 01:54:02 +0100 Subject: rename sparse table query function: queryIdempotent -> query --- content/graph/LCA_sparse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content/graph/LCA_sparse.cpp') 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]]; } -- cgit v1.2.3