485. Max Consecutive Ones 題目敘述 Given a binary array nums, return the maximum number of consecutive 1's in the array. Example 1: Input: nums = [1,1,0,1,1,1] Output: 3 Explanation: The first two digits or the last three digits are consecutive 1s. The m...
Markdown supported · ⌘↵ to post
No responses yet.