AlgoMaster Logo

Is Graph Bipartite?

graph=[[1,2,3],[0,2],[0,1,3],[0,2]]
0 / 15
0123AB
algomaster.io
Step:Try to split the 4 nodes into two sets, A and B, so every edge crosses between them