Commit graph

36 commits

Author SHA1 Message Date
Reanon
575bcf58ef
feat(go/tree): support array binary tree (#655) 2023-07-26 11:04:09 +08:00
krahets
504dff1728 Fix "函数" and "方法" 2023-06-24 16:37:56 +08:00
krahets
6f76203dd9 Fix some mistakes. 2023-05-27 17:13:51 +08:00
krahets
b39e79be85 Fix remove() in binary search tree. 2023-05-26 20:34:22 +08:00
krahets
f7ae9c8a02 Fix the return type of binary search tree and avl tree 2023-04-14 05:47:20 +08:00
Yudong Jin
1c8b7ef559
refactor: Replace 结点 with 节点 (#452)
* Replace 结点 with 节点
Update the footnotes in the figures

* Update mindmap

* Reduce the size of the mindmap.png
2023-04-09 04:32:17 +08:00
krahets
b37a088f7d Fix a comment in binary_tree_bfs.go 2023-03-13 22:47:22 +08:00
Yudong Jin
28aacccf44
refactor: Replace 'poll' with 'pop' in Heap (#416) 2023-03-13 22:31:05 +08:00
krahets
7238c560d1 Update binary_tree_bfs codes 2023-02-15 03:36:22 +08:00
krahets
300016393b Add code source blocks to the chapter Graph.
Fix "函数" and "方法"
2023-02-10 01:04:26 +08:00
krahets
e8c78f89f0 Add build script for Go and update Go codes. 2023-02-09 04:45:06 +08:00
krahets
ecbf2d1560 1. Add build script for Java.
2. Add height limitation for code blocks in extra.css.
3. Fix "节点" to "结点".
2023-02-07 04:43:52 +08:00
Yudong Jin
55b65dc806 Update binary_search_tree.go 2023-02-04 15:03:51 +08:00
Yudong Jin
b39b84acba Update avl_tree 2023-02-03 18:58:01 +08:00
Yudong Jin
2da45041b1 Update binary_search_tree 2023-02-02 13:54:31 +08:00
Yudong Jin
2336fe1d50 Update the comments in
binary_search_tree and avl_tree.
2023-01-17 01:53:12 +08:00
reanon
00009c8e49 feat(tree): add go codes 2023-01-16 10:20:56 +08:00
reanon
8723ca1469 feat(tree): add C codes 2023-01-11 01:56:08 +08:00
Yudong Jin
daa28be3e4
Merge branch 'master' into binary_search_tree 2023-01-10 13:30:38 +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
cb0071924e feat(tree/avl_tree): add go code 2023-01-09 01:13:29 +08:00
reanon
33e2c4f4d3 fix(tree): fix ArrToTree in go code 2023-01-08 20:33:30 +08:00
reanon
b73ac7bf4b style(go): fix go code style
Make the classes and methods in the package private, in case misuse
2023-01-08 20:33:30 +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
410c5d6b62 Free memory after removing
a node from a LinkedList or TreeNode.
2023-01-02 19:53:55 +08:00
龚国玮
a5e923a387 test(binary_search_tree): update test param
use param value 7, not 5, function test param value with param value in example picture as same.
2022-12-29 14:44:15 +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
reanon
67409cdb12 fix(tree): amend tree in golang 2022-11-29 10:44:31 +08:00
Yudong Jin
431a0f6caf 1. Add C++ codes for the chapter of
computational complexity, sorting, searching.
2. Corrected some mistakes.
3. Update README.
2022-11-27 04:19:16 +08:00
reanon
913cf38d0b fix(tree): make go code as consistent as possible with java code 2022-11-26 16:32:34 +08:00
reanon
e62d663630 feat(tree): add binary tree dfs in golang 2022-11-26 14:39:30 +08:00
reanon
0f89475e0e feat(tree): add binary tree bfs in golang 2022-11-26 14:38:38 +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
reanon
07a359484b feat(go): support basic pkg 2022-11-25 20:24:51 +08:00