Given a binary array nums and integer k, return the maximum number of consecutive 1s if you can flip at most k zeros.
Sliding window with a count of zeros in current window. Expand right; if zeros in window > k, shrink from left.
- Maintain left pointer and zeros count.
- Expand right: if nums[right]==0, increment zeros.
- While zeros > k: if nums[left]==0 decrement zeros; increment left.
- Answer = max(right - left + 1).
- Time Complexity: O(N)
- Space Complexity: O(1)