Commit Graph

134 Commits

Author SHA1 Message Date
Yudong Jin f103fdecc9 1. Update extra.css for overwrite
the sections title color.
2. Add figures to hash collision.
3. Add inorder traversal in binary search tree.
2023-01-30 03:55:13 +08:00
nuomi1 af8ee88e50
feat: add Swift codes for avl_tree article (#302) 2023-01-29 00:03:28 +08:00
nuomi1 d76e6582fa
feat: add Swift codes for binary_search_tree article (#296) 2023-01-27 01:52:51 +08:00
nuomi1 d52b60804b
feat: add Swift codes for binary_tree_traversal article 2023-01-19 00:12:54 +08:00
nuomi1 3ba87bcd7b
feat: add Swift codes for binary_tree article 2023-01-18 21:37:13 +08:00
Yudong Jin 2336fe1d50 Update the comments in
binary_search_tree and avl_tree.
2023-01-17 01:53:12 +08:00
Yudong Jin d33ececd57 Fix bst_degradation.png 2023-01-16 14:31:00 +08:00
Yudong Jin 3e19205c84 Update a comment in binary_search_tree. 2023-01-15 15:43:06 +08:00
Yudong Jin bb657f9517 Add destructors to the C++ codes. 2023-01-14 19:52:11 +08:00
fbigm dea3d0fa92
描述修改
若将上图的「结点 2」看作父结点-->若将下图的「结点 2」看作父结点
2023-01-12 11:32:32 +08:00
Yudong Jin d0e5406f0c
Merge branch 'master' into heap-dev 2023-01-12 04:11:22 +08:00
Cavin 9c5eedeb8c
Update binary_tree.md
优化第三段中对“左子树”和“右子树”的描述
2023-01-10 16:02:46 +08:00
Yudong Jin aaa2ff29f9 Fix all the ** (bolded symbols). 2023-01-09 22:39:30 +08:00
Yudong Jin 97ee638d31 Update the Optional alias of Python codes. 2023-01-09 02:49:34 +08:00
Yudong Jin 6b3c87399b Add time complexity in stack, queue, deque. Update heap. 2023-01-09 02:17:40 +08:00
Yudong Jin 5c943471c7
Merge pull request #220 from Reanon/bugfix/fix-go-code-style
style(go): fix go code style
2023-01-09 02:16:12 +08:00
reanon 388509a842 docs(tree/avl_tree): add go code 2023-01-09 01:13:29 +08:00
reanon 0243957015 doc(code): modify go code in docs 2023-01-08 20:33:30 +08:00
Yudong Jin 73e3452838 Add Swift language blocks to the docs. 2023-01-08 19:41:05 +08:00
Yudong Jin dcc3b2e35b Optimize arrToTree function
in java, cpp, py, go, js, ts.
2023-01-08 19:03:22 +08:00
Yudong Jin 694ea4f665 Modify `。** ` to `**。` for better visualization. 2023-01-07 20:34:32 +08:00
moonache 5775794351
错别字:从顶置底 -> 从顶至底 2023-01-04 19:27:35 +08:00
Yudong Jin e850152130 Update the rotation cases of the AVL tree. 2023-01-03 03:40:01 +08:00
Yudong Jin 410c5d6b62 Free memory after removing
a node from a LinkedList or TreeNode.
2023-01-02 19:53:55 +08:00
Yudong Jin 047e15e8d5
Merge pull request #183 from guowei-gong/binary_tree
docs(binary_tree): fix comment style and punctuation
2022-12-29 00:50:53 +08:00
龚国玮 debcc984e1 docs(binary_search_tree): variable name error
Combining Context, Compare 'cur.val' and 'num', not 'cur.val' and 'val`.
2022-12-28 17:07:59 +08:00
龚国玮 bd5cfb1117 docs(binary_tree): fix comment style and punctuation 2022-12-28 12:29:29 +08:00
Yudong Jin 466fdd494b Update the chapter tree. 2022-12-27 19:42:39 +08:00
Yudong Jin d03980e185 Merge branch 'master' of github.com:krahets/hello-algo 2022-12-27 19:39:37 +08:00
Yudong Jin f9cc3a50cf Fine tune 2022-12-27 19:38:14 +08:00
Yudong Jin 449258f0b0 Add the code to the docs. 2022-12-27 19:33:58 +08:00
Yudong Jin c4d32621c3
Merge branch 'master' into master 2022-12-27 19:16:39 +08:00
a16su 8b401c2acb
fix format error 2022-12-27 18:34:12 +08:00
Yudong Jin 8e9bfabae2 Fix binary search tree. 2022-12-27 17:10:23 +08:00
Yudong Jin 36507b84a0 Merge branch 'master' of github.com:krahets/hello-algo 2022-12-27 12:15:10 +08:00
Yudong Jin f1911015f3
Merge pull request #180 from DullSword/patch-2
docs(chapter_tree/binary_tree/二叉树表示方式 *): TS code
2022-12-27 12:14:51 +08:00
DullSword 142913bc9d
docs(chapter_tree/binary_tree/二叉树表示方式 *): TS code
与下图及其他编程语言示例代码不一致
2022-12-27 11:51:04 +08:00
DullSword 9a46bf1d80
docs(chapter_tree/binary_tree/二叉树表示方式 *): JS code
与下图及其他编程语言示例代码不一致
2022-12-27 11:34:41 +08:00
Yudong Jin c2662592bb Update space complexity 2022-12-26 13:15:09 +08:00
Yudong Jin 18c43566b4 Update summary of the chapter binary tree. 2022-12-25 14:05:42 +08:00
Yudong Jin 8733557f00 Update C# code. 2022-12-24 17:05:58 +08:00
Yudong Jin b1645c7d7e Fine tune 2022-12-24 16:15:41 +08:00
zhuzhiqing a427cb1b4d 完善所以c#相关的文档和代码 2022-12-23 15:42:02 +08:00
Yudong Jin 919236f479 1. Add array representation of binary tree.
2. Update the LEGO example.
3. Update headers of the Python files.
2022-12-23 00:44:40 +08:00
Yudong Jin f39636cb63 Update the structure of the chapter
of binary tree.
2022-12-21 17:19:39 +08:00
Yudong Jin f3ef226874 Remove the spaces between “ ” and 中文 aside. 2022-12-21 01:37:58 +08:00
a16su 9eac1275f6
add binary_tree and avl_tree python code 2022-12-20 15:52:00 +08:00
Yudong Jin 57fb315b4a Update AVLTree. 2022-12-18 22:54:42 +08:00
Yudong Jin be68420716 Update binary tree. 2022-12-18 15:59:34 +08:00
Yudong Jin 3d2d978f22 Fix a mistake in the terminology of binary tree. 2022-12-18 15:42:06 +08:00
justin 490f8d6685 Add the TypeScript code to binary search tree docs (Chapter of Tree) 2022-12-15 00:01:10 +08:00
justin 3e9c3fc34f Add the TypeScript code to binary tree docs (Chapter of Tree) 2022-12-15 00:00:40 +08:00
Yudong Jin 26436c75a5 Update site description. 2022-12-14 01:30:04 +08:00
justin 07ca137e78 Update JavaScript code to docs style (Chapter of Tree) 2022-12-13 21:44:14 +08:00
Yudong Jin cacbbe59e2 Update avltree.md 2022-12-11 18:41:15 +08:00
Yudong Jin 5e9a5524d4 Update AVL Tree. 2022-12-11 02:44:48 +08:00
Yudong Jin 60103f1a41
Merge branch 'master' into master 2022-12-11 02:33:05 +08:00
Yudong Jin ba91e25239 Rewrite the article, and code. Create figures. 2022-12-11 02:21:04 +08:00
Yudong Jin 122b0eca26 Update figures. 2022-12-10 02:29:44 +08:00
Yudong Jin c0fd51c312 Polished the content. 2022-12-06 02:19:26 +08:00
Yudong Jin 6c0eccd7b3
Fix the indentation in avl_tree.md 2022-12-05 12:24:48 +08:00
mgisr cb7f710321
Merge branch 'krahets:master' into master 2022-12-05 07:30:45 +08:00
Yudong Jin bc2561fb51 Add the chapter of hash map. 2022-12-05 02:37:16 +08:00
Yudong Jin 6c89c2b1cb
Merge pull request #71 from IsChristina/js-dev
add JavaScript codes for Tree
2022-12-05 00:15:33 +08:00
Yudong Jin f1ba6c679c
Update binary_tree.md 2022-12-05 00:13:48 +08:00
IsChristina db416cf4bb add JavaScript codes for Tree 2022-12-04 12:26:09 +08:00
mgisr bcc6aad18c
Merge branch 'krahets:master' into master 2022-12-04 08:28:35 +08:00
mgisr 24077ae392 fix(avl tree): fix all issue 2022-12-04 08:22:37 +08:00
Yudong Jin 33fd86cf60 Correct a concept. 2022-12-04 03:46:28 +08:00
Yudong Jin ebf9024136 Add Go codes to docs, including
the chapter of stack and queue, the chapter of tree.
2022-12-03 20:25:24 +08:00
mgisr d7516da1a7 feat(docs/chapter_tree/avl_tree.md): create 'avl_tree.md' 2022-12-03 17:19:38 +08:00
Yudong Jin 9bd5980a81 Organizing all the code blocks. 2022-12-03 01:31:29 +08:00
yabo083 a51b3fc60f
Update binary_tree_types.md
已简单修改有关完美二叉树的性质部分错误,但字体并不与原文相符,待进一步订正。
2022-12-02 20:23:52 +08:00
Yudong Jin 3fc3475af4 NULL to nullptr 2022-11-29 03:21:02 +08:00
Yudong Jin d2db8b8d60 Add C++ code for the chapter binary tree. 2022-11-29 02:21:49 +08:00
Yudong Jin f85ee36ce1
Merge pull request #31 from qualifier1024/patch-2
Update binary_search_tree.md
2022-11-26 22:15:44 +08:00
Yudong Jin aeff61ef3a
Update binary_tree.md 2022-11-26 22:14:02 +08:00
qualifier1024 8eec99aa54
Update binary_search_tree.md 2022-11-26 19:36:29 +08:00
qualifier1024 565fe49205
Update binary_tree.md 2022-11-26 19:32:59 +08:00
reanon 2e72ce8eeb feat(tree): add binary search tree in golang 2022-11-26 13:25:13 +08:00
reanon db5ca936b6 feat(tree): add binary tree in golang 2022-11-26 13:24:35 +08:00
krahets faba5af781 Update README 2022-11-23 15:50:59 +08:00
krahets 550024f69b Add quick sort. 2022-11-23 03:56:25 +08:00
krahets 33d79ea6da Update docs for deployment on Vercel. 2022-11-22 17:47:26 +08:00