public void PivotIndex_1() { var solution = new _0724_FindPivotIndex(); var result = solution.PivotIndex(new int[] { 1, 7, 3, 6, 5, 6 }); Assert.AreEqual(3, result); }
public void PivotIndex_2() { var solution = new _0724_FindPivotIndex(); var result = solution.PivotIndex(new int[] { 1, 2, 3 }); Assert.AreEqual(-1, result); }