Max Consecutive Ones II
Example
Input:
[1,0,1,1,0]
Output:
4
Explanation:
Flip the first zero will get the the maximum number of consecutive 1s.
After flipping, the maximum number of consecutive 1s is 4.Note
Code
Last updated