+ 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}

2nd Mar 2017, 1:21 PM
ODUKOYA JESUSEYITAN
ODUKOYA JESUSEYITAN - avatar
2 ответов
+ 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
3rd Mar 2017, 8:09 AM
ODUKOYA JESUSEYITAN
ODUKOYA JESUSEYITAN - avatar
0
Are you looking for the max length or max sum?
3rd Mar 2017, 7:40 AM
Igor B
Igor B - avatar