会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
itdef
2019年12月30日
LeetCode 1306 跳跃游戏 III Jump Game III
摘要: 地址 https://leetcode-cn.com/problems/jump-game-iii/submissions/ 题目描述这里有一个非负整数数组 arr,你最开始位于该数组的起始下标 start 处。当你位于下标 i 处时,你可以跳到 i + arr[i] 或者 i - arr[i]。
阅读全文
posted @ 2019-12-30 10:46 itdef
阅读(343)
评论(0)
推荐(0)
LeetCode 1302. 层数最深叶子节点的和 Deepest Leaves Sum
摘要: 地址 https://leetcode-cn.com/problems/deepest-leaves-sum/ 题目描述给你一棵二叉树,请你返回层数最深的叶子节点的和。 算法1递归遍历 额外记录下层级 然后叶子放入一个容器 以层级排序 输出
阅读全文
posted @ 2019-12-30 10:18 itdef
阅读(432)
评论(0)
推荐(0)
LeetCode 1300. 转变数组后最接近目标值的数组和 Sum of Mutated Array Closest to Target
摘要: 地址 https://leetcode-cn.com/problems/sum-of-mutated-array-closest-to-target/ 题目描述b给你一个整数数组 arr 和一个目标值 target ,请你返回一个整数 value ,使得将数组中所有大于 value 的值变成 val
阅读全文
posted @ 2019-12-30 10:14 itdef
阅读(526)
评论(0)
推荐(0)
LeetCode 1299. 将每个元素替换为右侧最大元素 Replace Elements with Greatest Element on Right Side
摘要: 地址 https://leetcode-cn.com/problems/replace-elements-with-greatest-element-on-right-side/ 题目描述给你一个数组 arr ,请你将每个元素用它右边最大的元素替换,如果是最后一个元素,用 -1 替换。 完成所有替换
阅读全文
posted @ 2019-12-30 10:04 itdef
阅读(341)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告