We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
本周重点:跳表、散列表、哈希算法、二叉树、红黑树
本周主要还是练习,课程学习相对少一些。
2 2 2 2 / \ / \ / \ / \ 2 5 2 5 2 5 2 5 / \ / \ / \ / / \ / \ 5 7 5 7 5 7 6 5 7 6 7 / 5 二叉树 平衡二叉树 完全二叉树 满二叉树
都是二叉树,2、3、4都是平衡二叉树, 3、4都是完成二叉树。4是满二叉树
4 4 / \ / \ 2 6 2 6 / \ ^ / \ 1 3 | 5 8 ^ |
使用了hash表+双向链表的实现
跳表:本周未涉及,周末有时间可以实现一下
The text was updated successfully, but these errors were encountered:
你的排版真的很赞,可以用幕布app直接做成思维导图,并且还附了用字符画的数据结构,有极客风范,代码里面的注释也很详细。而且你对每个题目都进行了比较详细的推导梳理归纳,这些地方都是值得初学者学习的。
Sorry, something went wrong.
同意楼上的说法,希望楼主再接再厉,加油 ↖(^ω^)↗
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
学习笔记
本周主要还是练习,课程学习相对少一些。
* 完全二叉树,那么只有1个子节点时,必须是左子字节。
* leetcode上的求第二小的数字。限定子节点只能是0或2,不能是1
* 平衡二叉树,左右子树的高度不能“相差太多”
* 完全二叉树,严格的平衡二叉树,左右高度相差最多为1。而且1个子节点时,必须是左子节点
* 满二叉树,一种特殊的完全二叉树。所有的非叶子节点数都是2
* 红黑树,比较难,后面再详细学习
上面几种实现本身没什么特别, 也是参考例子去实现的,有一点比较重要,以前都是学习理论,没有动手自己去实现。理解上还是不太深,自己实现一遍,加深了理解。比如:
The text was updated successfully, but these errors were encountered: