0886. Possible Bipartition
Description
**Input:** n = 4, dislikes = [[1,2],[1,3],[2,4]]
**Output:** true
**Explanation:** group1 [1,4] and group2 [2,3].**Input:** n = 3, dislikes = [[1,2],[1,3],[2,3]]
**Output:** false**Input:** n = 5, dislikes = [[1,2],[2,3],[3,4],[4,5],[1,5]]
**Output:** falseac
Last updated