摘要: 百忙之中刷一道算法题 一眼看出来就是并查集了 class Solution { public: int f[20000+10]; int find(int x) { if(f[x] != x) f[x] = find(f[x]); return f[x]; } int removeStones(ve 阅读全文
posted @ 2021-01-15 19:01 然终酒肆 阅读(89) 评论(0) 推荐(0)