Update lca.cpp

This commit is contained in:
John Law
2019-10-09 00:02:49 +08:00
committed by GitHub
parent dba806ca60
commit ae701243c2

View File

@@ -9,7 +9,7 @@ const int LG = log2(N) + 1;
struct lca
{
int n;
vector < int > adj[N]; // Graph
vector<int> adj[N]; // Graph
int up[LG][N]; // build this table
int level[N]; // get the levels of all of them