Skip to content

Create Sorted Array through Instructions

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

  • Array
  • Binary Search
  • Divide and Conquer
  • Binary Indexed Tree
  • Segment Tree
  • Merge Sort
  • Ordered Set
  1. 1Hard
  2. 2Hard
  3. 3Hard
  4. 4Hard
  5. 5Hard
  6. 6Hard
  7. 7Hard
  8. 8Hard