2020年6月11日

摘要: 地址 https://leetcode-cn.com/problems/daily-temperatures/ 请根据每日 气温 列表,重新生成一个列表。 对应位置的输出为:要想观测到更高的气温,至少需要等待的天数。 如果气温在这之后都不会升高,请在该位置用 0 来代替。 例如,给定一个列表 tem 阅读全文
posted @ 2020-06-11 22:04 itdef 阅读(263) 评论(0) 推荐(0)
摘要: 地址 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)
摘要: 地址 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)
摘要: 地址 https://leetcode-cn.com/problems/island-perimeter/ 给定一个包含 0 和 1 的二维网格地图,其中 1 表示陆地 0 表示水域。 网格中的格子水平和垂直方向相连(对角线方向不相连)。整个网格被水完全包围,但其中恰好有一个岛屿(或者说,一个或多个 阅读全文
posted @ 2020-06-11 12:22 itdef 阅读(388) 评论(0) 推荐(1)

导航