Computer Science, asked by Lightt66, 9 months ago

Find the maximum consecutive 1's in an array of 0's and 1's

Answers

Answered by Anonymous
0

Input : arr[] = {1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 1}

Output : 4

Input : arr[] = {0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1}

Output : 1

PLEASE MAKE ME AS A BRAINLIST ANSWER

Similar questions