Max Consecutive Ones II
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.class Solution {
public int findMaxConsecutiveOnes(int[] nums) {
}
}Last updated