Leetcode之Max Consecutive Ones 问题

问题描述: Given a binary array, find the maximum number of consecutive 1s in this array. 示例: Input: [1,1,0,1,1,1] Output: 3 Explanation: The first two digits or the last three digits are consecutive 1s.  
相关文章
相关标签/搜索