Array manipulation
I often feel tricky with many Array manipulation problems. This post may get updated in the future. Currently just can recognize to use increasing stack to solve this kind of typical problems.
Increasing Stack
To keep the order of the array and records some position information of the array.
lc739. Daily Temperatures
Use a stack to keep compare the peek element and current element, then get the position value of each position.
lc .Rectangle Histogram