Module 09 · DSA · Four patterns the ladders lean on
The stack that stays sorted (monotonic stack and deque)
Before you start.Linked Lists, Stacks & Queues gave you the stack: a pile where only the top item can be touched, so the last thing put on is the first thing taken off. Clinic #08: Daily Temperatures (the Hinglish clinic) solved one problem with a stack kept in order. This lesson takes that one trick, names it, shows why it is fast, and finds three more problems hiding in it. The Practice Ladders is where you practise afterwards.
Lesson 69 of 74 in DSA
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year, or $19.50 for your first year with LAUNCH50, ends 1 Nov, 18:30 UTC.