public void LargeArrayTimeOut_TwoPointer() { int[] input = GenerateVeryLargeArray(); const int expectedValue = 56250000; Assert.AreEqual(ContainerWithMostWater.MaxAreaTwoPointer(input), expectedValue); }
public void ExampleInput_TwoPointer() { int[] input = new int[] { 1, 8, 6, 2, 5, 4, 8, 3, 7 }; const int expectedValue = 49; Assert.AreEqual(ContainerWithMostWater.MaxAreaTwoPointer(input), expectedValue); }