1. FriendCycle
class Solution {public: int findCircleNum(vector>& M) { int len = M.size(); if (len == 0) return 0; vector parent(len, 0); for (int i=0; i
本文共 411 字,大约阅读时间需要 1 分钟。
1. FriendCycle
class Solution {public: int findCircleNum(vector>& M) { int len = M.size(); if (len == 0) return 0; vector parent(len, 0); for (int i=0; i
转载于:https://www.cnblogs.com/cookcoder-mr/p/11080041.html