Max Consecutive Ones | JavaScript | LeetCode
First, we will take a look at the problem statement, Given a binary array nums, return the maximum number of consecutive 1's in the array.
Now take a look at the constraints:
1 <= nums.length <= 10<sup>5</sup>
This means that the array nums can hav...
karthikshetty.hashnode.dev1 min read