solulubeta
Sign in
DSA Basics / Exam level
03.12 · Problem

The Longest Winning Run with k Retakes

Hard Sliding window with a budget Pro

This problem is part of solulu Pro

A player's match history is a row of 1s (wins) and 0s (losses). The club can rewrite at most k losses as wins for the highlight reel, and wants the longest continuous run of wins it can then show.

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

Item 77 of 90 · updated 2026-10-12