We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 720c76e commit c824a46Copy full SHA for c824a46
library/data_structures/dsu/kruskal_tree.hpp
@@ -5,7 +5,7 @@
5
struct kr_tree {
6
int id;
7
vi p;
8
- vector<array<int, 2>> adj;
+ vector<vi> adj;
9
kr_tree(int n): id(n), p(2 * n, -1), adj(2 * n) {}
10
int find(int v) {
11
return p[v] < 0 ? v : p[v] = find(p[v]);
0 commit comments