We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a42f02 commit 839291eCopy full SHA for 839291e
library/trees/linear_lca.hpp
@@ -14,7 +14,7 @@ int lsb(int x) { return x & -x; }
14
struct linear_lca {
15
int n;
16
vi d, in, asc, head;
17
- linear_lca(const vector<basic_string<int>>& adj):
+ linear_lca(const auto& adj):
18
n(sz(adj)), d(n), in(n), asc(n), head(n + 1) {
19
vector<pii> order;
20
auto dfs = [&](auto&& self, int v, int p) -> void {
0 commit comments