Introduction to Monotonic Stacks
Monotonic Stacks (introduction) is simple if you keep it on paper. Amit uses it for marks stored somehow in a viva board.
Monotonic Stacks (introduction) on the board: array vs list vs hash — one line each. Then say what marks stored somehow looks like after.
Monotonic Stacks (introduction) exists so Amit can keep marks stored somehow correct in a viva board.
Use Monotonic Stacks (introduction) when marks stored somehow must stay clear. If a simpler DSA step works, use that instead.
If marks stored somehow breaks under Monotonic Stacks (introduction), check reciting names with no cost first.
Place Monotonic Stacks (introduction) next to nearby DSA work — array vs list vs hash — one line each is the link.
One breath for Monotonic Stacks (introduction), then marks stored somehow, then reciting names with no cost. Sit down.
For Monotonic Stacks (introduction): definition + a viva board + one failure.