@Test public void shouldFindLongestConsecutiveSequenceRecursive() { int[] array = { 1, 3, 4, 5, 64, 4, 5, 6, 7, 8, 9, 98, -1, -2 }; int sequenceLength = lcs.findRecursive(array); assertEquals(7, sequenceLength); }
public int findRecursive(int[] array) { validateInput(array); return findRecursiveInner(array, 1, 0, 0); }
FindLongestConsecutiveSequence { public int findRecursive(int[] array) { validateInput(array); return findRecursiveInner(array, 1, 0, 0); } }
FindLongestConsecutiveSequence { public int findRecursive(int[] array) { validateInput(array); return findRecursiveInner(array, 1, 0, 0); }  }
FindLongestConsecutiveSequence { public int findRecursive(int[] array) { validateInput(array); return findRecursiveInner(array, 1, 0, 0); }  int findIterative(int[] numbers); int findRecursive(int[] array); }
FindLongestConsecutiveSequence { public int findRecursive(int[] array) { validateInput(array); return findRecursiveInner(array, 1, 0, 0); }  int findIterative(int[] numbers); int findRecursive(int[] array);  }