There are n people labeled from n. You are given an array dislikes where each dislikes[i] a_i, b_i a_i and person b_i dislike each other.
Return true if it is possible to split everyone into false otherwise.
Constraints:
n
dislikes.length
dislikes[i].length
a_i b_i n
All the pairs of dislikes are unique.
There are n people labeled from n. You are given an array dislikes where each dislikes[i] a_i, b_i a_i and person b_i dislike each other.
Return true if it is possible to split everyone into false otherwise.
Constraints:
n
dislikes.length
dislikes[i].length
a_i b_i n
All the pairs of dislikes are unique.