Medium
050Is Graph Bipartite
Given an adjacency list encoded as rows of neighbors, return true if the graph is bipartite.
EXAMPLES
Example 1
Input
{
"graph": [
[
1,
3
],
[
0,
2
],
[
1,
3
],
[
0,
2
]
]
}
Output
trueFUNCTION SHAPE
graph: intMatrix→bool