Minimum Recolors to Get K Consecutive Black Blocks
An Easy coding interview problem in the Sliding Window pattern.
Likely pattern
Grow and shrink a contiguous range while keeping an invariant.
Recognition cue: Longest, shortest or count of a contiguous subarray or substring with a constraint.
- Learn first
- Do not confuse it with
Topics
- String
- Sliding Window
Practise Sliding Window next
- 1Easy
- 2Easy
- 3Easy
- 4Easy
- 5Easy
- 6Easy
- 7Easy
- 8Easy