All challenges
Multiple ChoiceIntermediate 30s

Monotonic Stack

A monotonic stack maintains elements in:
Options
  1. 1Alphabetical order of the textual keys
  2. 2Sorted by the time each element was inserted
  3. 3Random order with no ordering constraint
  4. 4Strictly increasing or decreasing order

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle