zoukankan
html css js c++ java
5.26 Stacks and Queues
Remove K Digits
题目: 给定一个Num字符串来表示一个非负的整数,移除其中k位字符,使得新生成的数字最小。
思路:将高位数字提前删除 对于leading zero需要小心处理
Largest Rectangle in Histogram
Stack 里面存什么? -> heights中的元素index
Stack 什么时候 pop() 元素 -> 当前的height[i] < stack.peek()
查看全文
相关阅读:
软件工程第四次作业-题目2
oracle数据库本地网络服务名配置常见问题
2020软件工程第三次作业
2020软件工程第二次作业
2020软件工程第一次作业
20145208 蔡野 《网络攻防》 后门原理与实践
20145208蔡野 《网络对抗》逆向及BOF基础实践
密码分析学学习总结
20145208 《信息安全系统设计基础》课程总结
20145208 《信息安全系统设计基础》第十四周学习总结
原文地址:https://www.cnblogs.com/kong-xy/p/9095482.html
最新文章
第六章作业(1)
第六章小结--图
第五章作业小结
第五章--树与二叉树总结
第四章作业题总结
第四章小结
第三章栈与队列总结
软件工程第二次作业
尽量已 const , enum , inline ,替换#define
239. 滑动窗口最大值
热门文章
4. 寻找两个有序数组的中位数
2. 编辑距离 O(N*M)
16. 最接近的三数之和 O(N^2)
阿里笔试第一题
279 完全平方数 n*sqrt(n)复杂度
338. 比特位计数 O(N)解法
美团
Unity 协同程序coroutine简单使用
Unity 在Inspector面板上实现多选枚举
LeetCode1371.每个元音包含偶数次的最长子字符串
Copyright © 2011-2022 走看看