The maximum number of consecutive equal elements
The maximum number of consecutive equal elements. Given a sequence of integer numbers ending with the number 0, determine the length of the longest contiguous segment where all the elements are equal to each other. Test Case Input (Sequence) Expected Output 1 1 1 1 2 2 0 3 2 5 5 5 5 3 …