会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
itdef
2020年6月11日
LeetCode 739. 每日温度 单调数据结构
摘要: 地址 https://leetcode-cn.com/problems/daily-temperatures/ 请根据每日 气温 列表,重新生成一个列表。 对应位置的输出为:要想观测到更高的气温,至少需要等待的天数。 如果气温在这之后都不会升高,请在该位置用 0 来代替。 例如,给定一个列表 tem
阅读全文
posted @ 2020-06-11 22:04 itdef
阅读(263)
评论(0)
推荐(0)
LeetCode 315. 计算右侧小于当前元素的个数 树状数组 逆序对
摘要: 地址 https://leetcode-cn.com/problems/count-of-smaller-numbers-after-self/ 给定一个整数数组 nums,按要求返回一个新数组 counts。 数组 counts 有该性质: counts[i] 的值是 nums[i] 右侧小于 n
阅读全文
posted @ 2020-06-11 22:02 itdef
阅读(307)
评论(0)
推荐(0)
Leetcode 面试题51. 数组中的逆序对 493. 翻转对
摘要: 地址 https://leetcode-cn.com/problems/shu-zu-zhong-de-ni-xu-dui-lcof/ https://leetcode-cn.com/problems/reverse-pairs/ 在数组中的两个数字,如果前面一个数字大于后面的数字,则这两个数字组成
阅读全文
posted @ 2020-06-11 19:28 itdef
阅读(302)
评论(0)
推荐(0)
LeetCode 463. 岛屿的周长 bfs
摘要: 地址 https://leetcode-cn.com/problems/island-perimeter/ 给定一个包含 0 和 1 的二维网格地图,其中 1 表示陆地 0 表示水域。 网格中的格子水平和垂直方向相连(对角线方向不相连)。整个网格被水完全包围,但其中恰好有一个岛屿(或者说,一个或多个
阅读全文
posted @ 2020-06-11 12:22 itdef
阅读(388)
评论(0)
推荐(1)
导航
博客园
首页
新随笔
联系
订阅
管理
公告