首页
AI Coding
数据标注
NEW
沸点
课程
直播
活动
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
登录
注册
画画
掘友等级
获得徽章 0
动态
文章
专栏
沸点
收藏集
关注
作品
赞
0
文章 0
沸点 0
赞
0
返回
|
搜索文章
最新
热门
二叉树的前中后序非递归遍历
leetCode打卡——重插入法
由于数组中存在0,所以插入下标 < 数组长度 - 1,此时将后续的位置补0.
leetCode打卡——数组归位法
这些题可以用相同的思路进行解题,题目的数据结构都是数字数组,个数有限,并且数字都被数组的长度限制。先遍历把数组中的数字放到对应的位置上,然后再遍历,如果一个位置上的数字不符合预期,则能找出结果。 No.287我是用的快慢指针的方式解题的,这个题目跟寻找回路链表的交叉节点很像,只…
leetCode打卡——[121/122] Best Time to Buy and Sell Stock
Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You…
leetCode打卡——[118] Pascal's Triangle
Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. n Pascal's triangle, each number is the sum of the t…
leetCode打卡——[112] Path Sum
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the g…
leetCode打卡——111
Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to th…
leetCode打卡——110 Balanced Binary Tree
Given a binary tree, determine if it is height-balanced. 看了几个解题的代码,都是使用了两层递归,一层递归拿子树的高度,然后判断步骤1,外层递归循环进行上述操作,这个问题可以用一层递归即可解决问题。
leetCode打卡——108 Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST. For this problem, a height-balanced binar…
leetCode打卡—— 107 Binary Tree Level Order Traversal II
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to …
下一页
个人成就
文章被阅读
4,495
掘力值
291
关注了
0
关注者
0
收藏集
0
关注标签
4
加入于
2019-07-30