1019. 链表中的下一个更大节点 https://leetcode.cn/problems/next-greater-node-in-linked-list
1944. 队列中可以看到的人数 https://leetcode.cn/problems/number-of-visible-people-in-a-queue
1475. 商品折扣后的最终价格 https://leetcode.cn/problems/final-prices-with-a-special-discount-in-a-shop
901. 股票价格跨度 https://leetcode.cn/problems/online-stock-span
402. 移掉 K 位数字 https://leetcode.cn/problems/remove-k-digits
853. 车队 https://leetcode.cn/problems/car-fleet
581. 最短无序连续子数组 https://leetcode.cn/problems/shortest-unsorted-continuous-subarray
本文给出单调栈模板的更多变形,后面讲的一些经典例题可以抽象成下面的这些标准场景,你到时候可以直接复制粘贴代码去解决。