--- title: Monotonic Stack description: 'A stack keeps its items in sorted order, which finds the next larger or smaller item in one pass.' hidden: true ---