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()
查看全文
相关阅读:
nginx location 语法
nginx 日志文件
nginx 配置文件详解
mysql分区partition
MySQL跳过密码登录
min/max优化,count ,group by
in型子查询陷阱,exists子查询
explain分析sql效果
HDU2896 病毒侵袭 —— AC自动机
二分图之 多重匹配 和 最大权匹配 等总结
原文地址:https://www.cnblogs.com/kong-xy/p/9095482.html
最新文章
python-day7--%s与%d的使用,python2中的input及raw_input
python-day6---流程控制
python-day6---while循环
python-day6---运算符
python-day5笔记
python-day4笔记
python-day3笔记
python-day2笔记
oracle行转列
rank over partition by
热门文章
快速复制表结构及数据
数据库SQL中case when函数的用法
oracle日期、转换函数
oracle在线重定义表
dblinks
oracle任务job
oracle同义词
oracle存储过程
nginx gzip 压缩设置
Nginx Rewrite语法详解
Copyright © 2011-2022 走看看