← ALL NOTES
String

2379. Minimum Recolors to Get K Consecutive Black Blocks

Given a string blocks of 'W' (white) and 'B' (black) and a number k, one operation recolors any white block to black. Find the minimum operations to get at least k consecutive black blocks. In any…

Loading…