krahets / hello-algo

《Hello 算法》:动画图解、一键运行的数据结构与算法教程。支持 Python, Java, C++, C, C#, JS, Go, Swift, Rust, Ruby, Kotlin, TS, Dart 代码。简体版和繁体版同步更新,English version ongoing
https://www.hello-algo.com
Other
95.83k stars 12.15k forks source link

Code Transpilation to Go (Help Wanted) #222

Closed Reanon closed 5 months ago

Reanon commented 1 year ago

We need your help translating the code to Go.

Please check the contribution guidelines at #15

TODO List

Commit Guidelines

1、Format of the commit message Refer to AngularJS Git Commit Message Conventions

<type>(<scope>): <subject>

Allowed <type>

Allowed <scope>

For example, if you complete the go code of linkedlist_queue in chapter_stack_and_queue, the commit message should be like:

feat(stack_and_queue/linkedlist_queue): add go code.

2、What one commit contains If you complete two module code, testcase and docs, you commit log should be like:

docs(tree/binary_tree_bfs): add go code.
docs(stack_and_queue): add go code.
feat(stack_and_queue/linkedlist_queue): add go code and testcases.
test(tree/binary_tree_bfs): add go testcases.
feat(tree/binary_tree_bfs): add go code.

If you fix a bug, the commit log should be like :

docs(searching/linear_search): modify go code.
fix(searching/linear_search): fix go code.

Code Style

1、All code should be error-free when run through gofmt and go test. 2、Consistent with existing go code style. 3、Refer to uber/go-style.

krahets commented 1 year ago

Hello @itsarraj . Thank you! How can we help you?

ddkwork commented 1 year ago

can add ntree?

krahets commented 5 months ago

Closed because the 1st edition has been completed! Thank you for the great work!

JunMChen commented 1 month ago

Go1.23 发布了、这个项目现在还维护不了?