487 Max Consecutive Ones II
1. Question
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.2. Implementation
3. Time & Space Complexity
Last updated