Find the maximum consecutive 1's in an array of 0's and 1's
Answers
Answered by
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
Social Sciences,
4 months ago
Hindi,
4 months ago
Economy,
9 months ago
Social Sciences,
11 months ago
English,
11 months ago