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