diff options
| author | Gloria Mundi <gloria@gloria-mundi.eu> | 2024-04-28 03:26:45 +0200 |
|---|---|---|
| committer | Gloria Mundi <gloria@gloria-mundi.eu> | 2024-04-28 03:26:45 +0200 |
| commit | d6d3b6183df2e1d40154f406916993f9b15b3cae (patch) | |
| tree | fce26b106de624759a36e5add64aabad62f95a55 /graph/LCA_sparse.cpp | |
| parent | 2e0ba29cd0de1e88bed78a96f587613bcf3cc97c (diff) | |
improve sparse tables
Diffstat (limited to 'graph/LCA_sparse.cpp')
| -rw-r--r-- | graph/LCA_sparse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graph/LCA_sparse.cpp b/graph/LCA_sparse.cpp index 0f2fe22..06b294f 100644 --- a/graph/LCA_sparse.cpp +++ b/graph/LCA_sparse.cpp @@ -10,7 +10,7 @@ struct LCA { first.assign(sz(adj), 2 * sz(adj)); idx = 0; dfs(adj, root); - st.init(&depth); + st.init(depth); } void dfs(vector<vector<int>>& adj, int v, ll d=0) { |
