Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 347 Bytes

LeetCode-456-132-pattern.md

File metadata and controls

7 lines (5 loc) · 347 Bytes

132 Pattern

Solution link: LeetCode discussions

Basically divide the 132 problem into 1 problem, and 32 problem. Use a Monotonic stack to track the posible 2s, a variable to track the 3, and finally a loop for the 1.