Given a binary array, find the maximum number of consecutive 1s in this array.
Answers
Answered by
0
Answer:
use kadane algorithm.
Answered by
0
Explanation:
example 1 : Input : [ 1 1 0 1 1 1 ]
output : 3
Similar questions