Skip to content

0487 Max Consecutive Ones II, C++ Solution#5387

Open
TannerLow wants to merge 1 commit intoneetcode-gh:mainfrom
TannerLow:main
Open

0487 Max Consecutive Ones II, C++ Solution#5387
TannerLow wants to merge 1 commit intoneetcode-gh:mainfrom
TannerLow:main

Conversation

@TannerLow
Copy link

Neetcode.io has some built-in solutions for this problem already but this solution is much simpler than the sliding window solution while also providing O(n) time and O(1) space

Important

Please make sure the file name is lowercase and a duplicate file does not already exist before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant