Skip to content

Commit 0a756cb

Browse files
authored
Update README.md
1 parent e4726f9 commit 0a756cb

File tree

1 file changed

+5
-6
lines changed
  • solution/2600-2699/2685.Count the Number of Complete Components

1 file changed

+5
-6
lines changed

solution/2600-2699/2685.Count the Number of Complete Components/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,16 +251,16 @@ func countCompleteComponents(n int, edges [][]int) (ans int) {
251251

252252
拿示例一举例:
253253

254-
- 5包含的联通点有且只有自己,所以是连通图
255-
- 0包含0、1、2,同理1、2点也是
256-
- 3和4也是包含自己和彼此
257-
- 基于以上就有以下代码实现:
254+
- 5 包含的联通点有且只有自己,所以是连通图
255+
- 0 包含 0、1、2,同理 1、2 点也是
256+
- 3 和 4 也是包含自己和彼此
257+
- 基于以上就有以下代码实现:
258258

259259
<!-- tabs:start -->
260260

261261
#### C++
262262

263-
```c++
263+
```cpp
264264
class Solution {
265265
public:
266266
int countCompleteComponents(int n, vector<vector<int>>& edges) {
@@ -285,7 +285,6 @@ public:
285285
return ans;
286286
}
287287
};
288-
// cost:283ms、beats 5%.
289288
```
290289
291290
<!-- tabs:end -->

0 commit comments

Comments
 (0)