Search
⌘K

Leetcode 785. Is Graph Bipartite?

Given an undirected graph as adjacency lists (possibly disconnected), determine whether it is bipartite — i.e., can its vertices be two-colored so no adjacent vertices share a color — which reduces to detecting a conflict/odd cycle via graph traversal (BFS/DFS).

Asked at:

Google

Google


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Late September, 2024

Google

Google

Junior

Graph problem related to router connectivity using adjacency list representation and DFS

Comments

Your account is free and you can post anonymously if you choose.