Skip to content

Commit 5b056a2

Browse files
committed
improve cpp
1 parent 574f279 commit 5b056a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

May-LeetCoding-Challenge/27-Possible-Bipartition/Possible-Bipartition.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ class Solution {
33
vector<int> color;
44
vector<vector<int>> G;
55

6+
// Return true if the connected component of u is a bipartite graph
67
bool bipartite(int u) {
78
for (int i = 0; i < G[u].size(); i++) {
89
int v = G[u][i];

0 commit comments

Comments
 (0)