This C++ program:
1) Takes in an array of 1001 integers and its length as input.
2) Loops through the array to find the longest consecutive sequence of zeros.
3) Outputs the starting and ending indices of the longest zero sequence found.
This C++ program:
1) Takes in an array of 1001 integers and its length as input.
2) Loops through the array to find the longest consecutive sequence of zeros.
3) Outputs the starting and ending indices of the longest zero sequence found.
This C++ program:
1) Takes in an array of 1001 integers and its length as input.
2) Loops through the array to find the longest consecutive sequence of zeros.
3) Outputs the starting and ending indices of the longest zero sequence found.