Leetcode-Solutions
Leetcode-Solutions copied to clipboard
Update Max Consecutive Ones III - Leetcode 1004.py
Use if statement instead of while to get back one zero to find the next maximum consecutive subsequence of 1.
Please find my explanation.