Max Consecutive Ones
Given a binary array, find the maximum number of consecutive 1s in this array.
Latest Source Code:
Github: MaxConsecutiveOnes.java
Output:
Array: [1, 1, 0, 1, 1, 1] Count: 3 Array: [1, 1, 1, 1, 1, 1] Count: 6 Array: [0, 0, 0] Count: 0