public void example() { var A = new[] { 3, 4, 3, 2, 3, -1, 3, 3 }; Dominator.solution(A).Should().BeOneOf(new[] {0, 2, 4, 6, 7}); }
public void example() { var A = new[] { 4, 3, 4, 4, 4, 2 }; EquiLeader.solution(A).Should().Be(2); }
public void example() { var A = new[] { 3, 4, 3, 2, 3, -1, 3, 3 }; Dominator.solution(A).Should().BeOneOf(new[] {0, 2, 4, 6, 7}); }
public void example() { var A = new[] { 4, 3, 4, 4, 4, 2 }; EquiLeader.solution(A).Should().Be(2); }