Skip to content

Find Beautiful Indices in the Given Array II

A Hard coding interview problem in the Binary Search pattern.

Likely pattern

Binary Search

Halve a monotonic search space, on indices or on the answer.

Recognition cue: Sorted input, rotated arrays, or "minimum value that works" with a monotonic check.

Learn first

Topics

  • Two Pointers
  • String
  • Binary Search
  • Rolling Hash
  • String Matching
  • Hash Function
  1. 1Hard
  2. 2Hard
  3. 3Hard
  4. 4Hard
  5. 5Hard
  6. 6Hard
  7. 7Hard
  8. 8Hard