Problem
Given a binary array and integer k, return the maximum number of consecutive 1s if you can flip at most k zeros.
References
Difficulty
🟡 Medium
Companies
Amazon, Google, Microsoft
Notes
Language: Java
Variable window. Track zeros flipped. Shrink left when zeros flipped exceeds k.
Problem
Given a binary array and integer k, return the maximum number of consecutive 1s if you can flip at most k zeros.
References
Difficulty
🟡 Medium
Companies
Amazon, Google, Microsoft
Notes
Language: Java
Variable window. Track zeros flipped. Shrink left when zeros flipped exceeds k.