+ 4
C#. A program that finds the maximal sequence of consecutive equal elements in an array. E.g {1,1,2,3,2,2,2,1} -> {2,2,2}
2 Answers
+ 4
the console accepts the array as input...
the checks the array and prints the maximum sequence of consecutive equal elements
...
just like the example above
0
Are you looking for the max length or max sum?