Leetcode-Solutions icon indicating copy to clipboard operation
Leetcode-Solutions copied to clipboard

Update Max Consecutive Ones III - Leetcode 1004.py

Open bhuvanonymous opened this issue 1 year ago • 0 comments

Use if statement instead of while to get back one zero to find the next maximum consecutive subsequence of 1.

Please find my explanation. image

bhuvanonymous avatar Jul 02 '24 05:07 bhuvanonymous