leetcode
485. Max Consecutive Ones
Solution code
Time complexity: O(n)
Space complexity: O(1)