Question: Write a program using function that searches the array initialized by user and finds the following; Maximum consecutive 1s (Number of times the value 1
Write a program using function that searches the array initialized by user and finds the following; Maximum consecutive 1s (Number of times the value 1 occur consecutively: more than one). Its starting index and Its ending index.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
