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
History,
5 months ago
Science,
5 months ago
Math,
5 months ago
Economy,
10 months ago
Social Sciences,
1 year ago