摘要: 题目链接 股票价格跨度 注意事项 使用单调栈 代码 class StockSpanner { public: StockSpanner() { this->stk.emplace(-1, INT_MAX); this->idx = -1; } int next(int price) { idx++; 阅读全文
posted @ 2022-10-23 09:48 Frodo1124 阅读(18) 评论(0) 推荐(0) 编辑