solulubeta
Sign in
Story Problems / Arrays, windows & two pointers
01.09 · Problem

Longest Working Streak With Repairs

Medium Window with at most K zeros Pro

This problem is part of solulu Pro

A factory has a row of sensors: 1 = working, 0 = faulty. A technician can repair at most k faulty sensors. After the repairs, what is the longest continuous row of working sensors?

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 9 of 94 · updated 2026-10-12