Search
⌘K

Leetcode 886. Possible Bipartition

Given n people and pairwise dislikes, determine whether the corresponding undirected graph is bipartite — i.e., whether you can 2-color all vertices (split into two groups) so no dislike pair lies within the same group (n ≤ 2000, dislikes ≤ 10^4).

Asked at:

LinkedIn

LinkedIn


Question Timeline

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

Early April, 2025

LinkedIn

LinkedIn

Mid-level

Comments

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