摘要: 一个一个试,深度优先算法判断是不是树,遍历个数判断图是否分裂。 这题不难。 class Solution { public: vector<int> a; #define siz 1001 int mapp[siz][siz]; int visited[siz]; bool ch; int inn[ 阅读全文
posted @ 2020-09-17 19:14 vdk 阅读(193) 评论(0) 推荐(0)