AdvancedRating 1600
Flip K Zeros
You may flip at most k zeros to ones. Print the length of the longest run of ones you can get.
Input
n k, then n values 0/1.
Output
A length.
Sample 1
Input
11 2 1 1 1 0 0 0 1 1 1 1 0
Output
6
Sample 2
Input
4 0 0 0 0 0
Output
0
Output appears here