随笔分类 -  最近公共祖先LCA

最近公共祖先LCA
摘要:tarjan算法求LCA //tarjan算法 #include<bits/stdc++.h> using namespace std; const int maxn=5e5+10; vector<int> tre[maxn]; struct node{ int to; int id; }; vec 阅读全文
posted @ 2022-11-08 19:22 心悟&&星际 阅读(21) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示