Skip to content

Maximum Difference Between Even and Odd Frequency II

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

  • String
  • Sliding Window
  • Enumeration
  • Prefix Sum
  1. 1Hard
  2. 2Hard
  3. 3Hard
  4. 4Hard
  5. 5Hard
  6. 6Hard
  7. 7Hard
  8. 8Hard