[LeetCode] 487. Max Consecutive Ones II 最大连续1的个数之二

Given a binary array, find the maximum number of consecutive 1s in this array if you can flip at most one 0. Example 1: Input: [1,0,1,1,0] Output: 4 E
posted @ 2017-02-07 22:15  Grandyang  阅读(11241)  评论(2)    收藏  举报
Fork me on GitHub