Fix linter warnings in fixgraph branch.

This commit is contained in:
Filip Hlásek
2020-08-01 22:55:50 -07:00
parent c107f99db9
commit e2f344c498
8 changed files with 92 additions and 131 deletions

View File

@@ -7,8 +7,8 @@
// Find the lowest common ancestor using binary lifting in O(nlogn)
// Zero based indexing
// Resource : https://cp-algorithms.com/graph/lca_binary_lifting.html
const int N = 1005;
const int LG = log2(N) + 1;
constexpr int N = 1005;
constexpr int LG = 20;
struct lca {
int n;
std::vector<int> adj[N]; // Graph