public void PossibleBipartition_1() { var solution = new _0886_PossibleBipartition(); var result = solution.PossibleBipartition(4, new int[][] { new int[] { 1, 2 }, new int[] { 1, 3 }, new int[] { 2, 4 }, }); Assert.IsTrue(result); }
public void PossibleBipartition_2() { var solution = new _0886_PossibleBipartition(); var result = solution.PossibleBipartition(3, new int[][] { new int[] { 1, 2 }, new int[] { 1, 3 }, new int[] { 2, 3 }, }); Assert.IsFalse(result); }