Question: Consider the sample array given below: Element 5010111107 Index 0 1 2 3 4 5 6 7 8 9 Write a program using function that

Consider the sample array given below: Element 5010111107 Index 0 1 2 3 4 5 6 7 8 9 Write a program using function that searches the array initialized by user and finds the following; Maximum consecutive ls (Number of times the value 1 occur consecutively: more than one). It's starting index and It's ending index. Output for given array will be: Maximum consecutive l's : 4 The starting indexes 4 Ending indexes 7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
