Shu-How Zの小窝

Loading...
摘要: 1319.连通网络的操作次数 2:24 // 定义并查集类 class UnionFind{ // 构造函数初始化并查集 constructor(n){ this.parent = new Array(n).fill(0).map((item,index)=>index) this.rank = n 阅读全文
posted @ 2025-04-26 19:46 KooTeam 阅读(11) 评论(0) 推荐(0)