public void PivotIndexTest_6() { var test = new P0724_FindPivotIndex(); var pivotIndex = test.PivotIndex(new int[] { 1, 2, 0, 0, 0, 0, 2, 1 }); Assert.AreEqual(2, pivotIndex); }
public void PivotIndexTest_1() { var test = new P0724_FindPivotIndex(); var pivotIndex = test.PivotIndex(new int[] { }); Assert.AreEqual(-1, pivotIndex); }
public void PivotIndexTest_4() { var test = new P0724_FindPivotIndex(); var pivotIndex = test.PivotIndex(new int[] { 1, 7, 3, 6, 5, 6 }); Assert.AreEqual(3, pivotIndex); }