1019. 链表中的下一个更大节点 https://leetcode.cn/problems/next-greater-node-in-linked-list
1019. Next Greater Node In Linked List https://leetcode.com/problems/next-greater-node-in-linked-list
1944. 队列中可以看到的人数 https://leetcode.cn/problems/number-of-visible-people-in-a-queue
1944. Number of Visible People in a Queue https://leetcode.com/problems/number-of-visible-people-in-a-queue
1475. 商品折扣后的最终价格 https://leetcode.cn/problems/final-prices-with-a-special-discount-in-a-shop
1475. Final Prices With a Special Discount in a Shop https://leetcode.com/problems/final-prices-with-a-special-discount-in-a-shop
901. 股票价格跨度 https://leetcode.cn/problems/online-stock-span
901. Online Stock Span https://leetcode.com/problems/online-stock-span
402. 移掉 K 位数字 https://leetcode.cn/problems/remove-k-digits
402. Remove K Digits https://leetcode.com/problems/remove-k-digits
853. 车队 https://leetcode.cn/problems/car-fleet
853. Car Fleet https://leetcode.com/problems/car-fleet
581. 最短无序连续子数组 https://leetcode.cn/problems/shortest-unsorted-continuous-subarray
581. Shortest Unsorted Continuous Subarray https://leetcode.com/problems/shortest-unsorted-continuous-subarray
Prerequisites
Before reading this article, you need to learn:
This article provides more variations of the monotonic stack template. Some classic problems discussed later can be abstracted into the following standard scenarios. You can directly copy and paste the code to solve them.