Skip to content

Maximum Array Hopping Score II

A Medium coding interview problem in the Stack pattern.

Likely pattern

Stack

Defer work until a matching or smaller element appears.

Recognition cue: Matching brackets, nested structure, or the next greater / smaller element.

Learn first

Topics

  • Array
  • Stack
  • Greedy
  • Monotonic Stack
  1. 1Medium
  2. 2Medium
  3. 3Medium
  4. 4Medium
  5. 5Medium
  6. 6Medium
  7. 7Medium
  8. 8Medium