Commit graph

19 commits

Author SHA1 Message Date
Hongyun Zhang
8068c42688
fixed error when the list is empty (#637)
* feat: Add Go code to binary search recursion under divide and conquer

* style: Code comment standardization

* style: modify function comment

* fix: fixed error when the list is empty

* Update print_utils.go

* Delete print_utils_test.go

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-07-21 14:47:37 +08:00
krahets
504dff1728 Fix "函数" and "方法" 2023-06-24 16:37:56 +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
Yudong Jin
28aacccf44
refactor: Replace 'poll' with 'pop' in Heap (#416) 2023-03-13 22:31:05 +08:00
Reanon
327f385d32
feat(go/graph): add go code for graph_dfs/bfs (#372)
* feat(vertex): add a vertex pkg

* feat(graph): add graph_bfs in go

* feat(graph): add graph_dfs in go

* fix(graph): fix comment

* fix(graph): fix graph_adj_list

* fix(go/graph): fix graph_adjacency

* fix(c): gitignore

* feat(graph): print order adjList graph

* fix(graph): remove order print

* Update graph_adjacency_list_test.go

* Update .gitignore

* Update .gitignore

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-27 20:34:30 +08:00
reanon
32962fb7a1 feat(heap): add go codes 2023-01-13 17:38:03 +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
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
machangxin
e0721dde05 function PrintSlice supports Generics 2022-12-17 14:59:21 +08:00
machangxin
ba5b5a1f09 function PrintMap supports Generics 2022-12-16 17:03:41 +08:00
machangxin
26ad485dd2 Add function PrintMap() in Go 2022-12-16 10:55: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
reanon
913cf38d0b fix(tree): make go code as consistent as possible with java code 2022-11-26 16:32:34 +08:00
reanon
fae6c6ac5b fix(pkg): amend tree node 2022-11-26 11:18:31 +08:00
reanon
aa7a32efe0 fix(go): fix support basic pkg 2022-11-26 01:17:48 +08:00
reanon
07a359484b feat(go): support basic pkg 2022-11-25 20:24:51 +08:00