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
94.99k stars 12.06k forks source link

Code Transpilation to multiple progamming languages (Help Wanted) #15

Open krahets opened 1 year ago

krahets commented 1 year ago

[!TIP] We seek help translating the code from one programming language to another. Feel free to contribute in programming languages not listed here, such as PHP, R. Ruby, Kotlin, etc.

Contributing Guideline

Code Reviewers

If you have extensive programming experience and are interested in reviewing code, please reach out via WeChat at krahets-jyd . We dedicate our thanks to all code reviewers on the landing page and of this project.

Language Reviewer
Java @krahets
C++
Python @krahets
Go #222 @Reanon
JavaScript #120 @justin-tse
TypeScript #121 @justin-tse
C# @hpstory
C #425 @Gonglja
Swift @nuomi1
Rust @night-cruise
Ruby @khoaxuantu
Dart @gvenusleo
Kotlin @curtishd
Zig @codingonion
krahets commented 1 year ago

Hi @sjinzh , @night-cruise! I think it is time to add Rust code to the documents. I found that some code lacks of comments, such as array_queue.rs. Could you recheck the Rust code thoughouly? When finished, I will release them to docs.

codingonion commented 1 year ago

Hi @sjinzh , @night-cruise! I think it is time to add Rust code to the documents. I found that some code lacks of comments, such as array_queue.rs. Could you recheck the Rust code thoughouly? When finished, I will release them to docs.

OK.

night-cruise commented 1 year ago

Hi @sjinzh , @night-cruise! I think it is time to add Rust code to the documents. I found that some code lacks of comments, such as array_queue.rs. Could you recheck the Rust code thoughouly? When finished, I will release them to docs.

OK, I will check the rust code.

Nigh commented 12 months ago

Hi @krahets , I have translated C code in chapter_greedy in #755

yahya-mohammed07 commented 11 months ago

I can help translate c++, TS, Js codes

QiLOL commented 11 months ago

Hello @krahets , the translation for iteration and recursion in Zig is ready, please check: https://github.com/krahets/hello-algo/pull/804 Thanks!

memorycancel commented 10 months ago

Hi @krahets , is there a plan to add the language of Ruby?

krahets commented 10 months ago

@memorycancel Yes, we welcome PRs in any coding language, and the code will be deployed on the page when the completion level is reached.

memorycancel commented 10 months ago

@memorycancel Yes, we welcome PRs in any coding language, and the code will be deployed on the page when the completion level is reached.

OK!I can help, can you give some links, something like a TO-DO list which help kick-off a new language ?

krahets commented 10 months ago

OK!I can help, can you give some links, something like a TO-DO list which help kick-off a new language ?

@memorycancel Please read the Contribution Guideline before start the journey. Just coding in a new folder codes/ruby/ and I'll handle other work.

Here's some PR examples: #632, #681, #696.

khoaxuantu commented 5 months ago

Hello @krahets, I would love to help transpiling to Ruby, maybe starting with "Array & Linked List" chapter would be great!

Transmigration-zhou commented 2 months ago

Hi @krahets I can add the initial EN translation for Golang code

krahets commented 2 months ago

@Transmigration-zhou Hi! We intend to do Chinese-to-English code translation in an automated way, as only code comments need to be translated, which are mostly consistent between programming languages.

UblezUnunsIOII commented 1 month ago

Ni' Hoa and Hello! I tank you for the heads up on the repository commit

WangBlue1 commented 3 weeks ago

Hi @krahets,有计划添加Scala 语言版的数据结构吗?