会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Figure at a Window
管理
2022年12月12日
LeetCode962. Maximum Width Ramp
摘要: 题意 给一个序列,求其中最大的j-i, 满足i < j且num[i] <= nums[j] 方法 单调栈 代码 class Solution { public: int maxWidthRamp(vector<int>& A) { stack<int> s; int n=A.size(); int
阅读全文
posted @ 2022-12-12 21:59 Figure_at_a_Window
阅读(32)
评论(0)
推荐(0)