Max Consecutive Ones III
Problem
Given a binary array nums and a nonnegative integer k, you may flip at most k zeros to ones. Return the maximum possible length of a contiguous sequence of ones.
Input and Output
...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
