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
本文给出单调栈模板的更多变形,后面讲的一些经典例题可以抽象成下面的这些标准场景,你到时候可以直接复制粘贴代码去解决。
loading...