Open utterances-bot opened 3 weeks ago
Find the longest contiguos subsequences with K zeros at most
https://honingjs.com/challenges/leetcode/1004-max-consecutive-ones-iii
I think you don't need the if check on line 14, right? The while loop will only run if numberOfZeros is greater than k
if
numberOfZeros
LeetCode: Max Consecutive Ones III Solution - HoningJS
Find the longest contiguos subsequences with K zeros at most
https://honingjs.com/challenges/leetcode/1004-max-consecutive-ones-iii