public void Test4() { var len = new LengthOfLargestSubarrayWithContiguousElements(); var result = len.FindLength(new int[] { 13, 0, 11, 12 }); Assert.That(result, Is.EqualTo(2)); }
public void Test3() { var len = new LengthOfLargestSubarrayWithContiguousElements(); var result = len.FindLength(new int[] { 1, 56, 58, 57, 90, 92, 94, 93, 91, 45 }); Assert.That(result, Is.EqualTo(5)); }