You've learned the two main stack patterns. Valid Parentheses showed matching: push opening elements, pop and match when you see closing elements. Use this for any paired structure. Min Stack demonstrated augmented stacks: track additional information alongside the regular stack operations. Daily Temperatures introduced monotonic stacks: maintain elements in sorted order to efficiently find "next greater" or "next smaller" elements. When you see a problem about matching pairs or finding the next larger/smaller element, think stack.
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
$ curl repovive.com/roadmaps/maang-interview-prep/stacks/section-recap
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░██████████████████████████████████████████████████████████████████████