Bug fixes and improvements (#1252)

* Bug fixes

* Fix the landing page of zh-hant version

* Bug fixes and add an Q&A for chapter_data_structure

* Update the mindmap for zh-hant version
This commit is contained in:
Yudong Jin
2024-04-09 19:55:59 +08:00
committed by GitHub
parent 896d9a64f6
commit 78f71eeacb
7 changed files with 41 additions and 9 deletions

View File

@ -8,8 +8,6 @@
/* AVL 树 */
class AVLTree {
public:
TreeNode *root; // 根节点
private:
/* 更新节点高度 */
void updateHeight(TreeNode *node) {
@ -134,6 +132,8 @@ class AVLTree {
}
public:
TreeNode *root; // 根节点
/* 获取节点高度 */
int height(TreeNode *node) {
// 空节点高度为 -1 ,叶节点高度为 0