// 易错点4:栈空时要存-1(题目要求无更大值返回-1),而非直接存stack2.at(-1)(会得到undefined)
You don't have permission to access the page you requested.
,更多细节参见91视频
Что думаешь? Оцени!
while (stack.length 0 && nums[stack[stack.length - 1]] <= curHeight) {
Copyright © 1997-2026 by www.people.com.cn all rights reserved