Max Consecutive Ones III
Medium
Sliding Window (Advanced)
Given a binary array and an integer k, print the maximum number of consecutive 1s if you may flip at most k zeros.
Constraints
1 <= n <= 10^5 0 <= k <= n
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.