Skip to content

Minimum Number of K Consecutive Bit Flips

A Hard coding interview problem in the Sliding Window pattern.

Likely pattern

Sliding Window

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

Topics

  • Array
  • Bit Manipulation
  • Queue
  • Sliding Window
  • Prefix Sum
  1. 1Hard
  2. 2Hard
  3. 3Hard
  4. 4Hard
  5. 5Hard
  6. 6Hard
  7. 7Hard
  8. 8Hard