hello-algo icon indicating copy to clipboard operation
hello-algo copied to clipboard

Code Transpilation to multiple progamming languages (Help Wanted)

Open krahets opened this issue 2 years ago • 69 comments

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

Contributing Guideline

  • Select a reference language: Python or Java are the preferred reference languages since their codebase has been thoroughly tested.
  • Maintain code consistency: Align your code structure, naming conventions, and comments with those in the reference language to minimize discrepancies.
  • Test the code: Ensure your code produces the same output as the reference code. Recommend utilizing tools like Diffchecker to compare the outputs.
  • Format the code: Before opening the pull request, check your code formatting against existing chapters for consistent indentation, comment style, and naming conventions. Standard code formatting tools are recommended.
  • Please ensure that a pull request(PR) covers at most one chapter for better maintainability. PR examples:
    • #632
    • #681
    • #696

Code Reviewers

If you have extensive programming experience and are interested in reviewing code, please reach out via WeChat at krahets-jyd . We thank 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, @rongyi
Ruby @khoaxuantu
Dart @gvenusleo
Kotlin @curtishd
Zig @coderonion

krahets avatar Nov 25 '22 05:11 krahets

I can help translate part of C

kalaersun avatar Nov 29 '22 04:11 kalaersun

I can help translate part of C

Thanks, @kalaersun ! Looking forward to your code.

krahets avatar Nov 29 '22 13:11 krahets

I can help translate part of go about "Array and Linked List" and "Sorting"

lkgGitHub avatar Nov 29 '22 15:11 lkgGitHub

I can help translate part of go about "Array and Linked List" and "Sorting"

Thanks, @lkgGitHub !

Please get in touch with @Reanon as maybe he is working on the remaining Go codes.

(You can check codes at https://github.com/krahets/hello-algo/tree/master/codes/go compared with .../master/codes/java)

krahets avatar Nov 29 '22 15:11 krahets

I can help translate part of go about "Array and Linked List" and "Sorting"

@lkgGitHub, You can do it! Chapter Array/LinkedList or Sorting are available. If you pull request, i will review you golang code. Beside, before you pull request, you should check if other pull request to Golang code. Thank you for participating in Golang Translation😁.

Reanon avatar Dec 03 '22 12:12 Reanon

I can help translate part of TypeScript

justin-tse avatar Dec 04 '22 05:12 justin-tse

I will try to translate the part of Array and Linked List.

justin-tse avatar Dec 04 '22 06:12 justin-tse

I think I can translate the remaining part of Chapter Array and LinkedList to JavaScript.

justin-tse avatar Dec 11 '22 17:12 justin-tse

I can help translate the part of Insertion Sort and Quick Sort to Go

msk397 avatar Dec 12 '22 06:12 msk397

I can translate the part of Sorting to TypeScript.

justin-tse avatar Dec 12 '22 14:12 justin-tse

I can help translate part of C# start with Array.

mingXta avatar Dec 13 '22 01:12 mingXta

I can help translate part of Go

Cathay-Chen avatar Dec 13 '22 05:12 Cathay-Chen

I can translate the Chapter of Tree to TypeScript.

justin-tse avatar Dec 13 '22 06:12 justin-tse

Can I help translate the Chapter of Hashing using C++, Python and Go ? I find that nobody seems to have done this part

msk397 avatar Dec 13 '22 16:12 msk397

Can I help translate the Chapter of Hashing using C++, Python and Go ? I find that nobody seems to have done this part

Feel free to create a pull request. I will add your ID to the form.

krahets avatar Dec 13 '22 16:12 krahets

请问C语言部分我可以一起进行创作吗?

heshuyue avatar Dec 14 '22 06:12 heshuyue

请问C语言部分我可以一起进行创作吗?

@huawuque404 非常欢迎!请阅读本文 contribution guidelines ,以及可以参考过往 pull request 的提交方式

krahets avatar Dec 14 '22 06:12 krahets

好嘞!🤝

heshuyue avatar Dec 14 '22 07:12 heshuyue

Considers add Rust code example? I want to provide help.

Loner1024 avatar Dec 14 '22 14:12 Loner1024

Considers add Rust code example? I want to provide help.

Sure. Feel free to push a PR

krahets avatar Dec 14 '22 14:12 krahets

Considers add Rust code example? I want to provide help.

Sure. Feel free to push a PR

I will create a new issue for Rust code translation. It helps assign tasks for those who want to participate.

Loner1024 avatar Dec 14 '22 15:12 Loner1024

@Loner1024 I've added Rust to the table.

krahets avatar Dec 14 '22 15:12 krahets

The project was forked more than ten days ago and now it is finally here. I want to help translate the JavaScript and TypeScript versions of the "Space Time Tradeoff" section~

十几天前fork了项目现在终于来了,我想帮忙翻译 《权衡时间与空间》一节的 JavaScript 和 TypeScript 两个版本~

gyt95 avatar Dec 14 '22 16:12 gyt95

I'm sorry, I clicked the wrong button by mistake🤣

msk397 avatar Dec 18 '22 14:12 msk397

I've done "Space Time Tradeoff" section but why the status is still brewing?

gyt95 avatar Dec 19 '22 03:12 gyt95

I've done "Space Time Tradeoff" section but why the status is still brewing?

My bad, I’ll update it.

krahets avatar Dec 19 '22 10:12 krahets

我来写python的二叉树部分

a16su avatar Dec 19 '22 15:12 a16su

@a16su I’ve added your ID to the table.

krahets avatar Dec 19 '22 15:12 krahets

I'd like to join this with the C language. But I haven't seen a folder of C. Is that mean I could start from creating a new folder?

MolDuM avatar Dec 20 '22 08:12 MolDuM

I'd like to join this with the C language. But I haven't seen a folder of C. Is that mean I could start from creating a new folder?

Yes, feel free to create a folder for the C code

krahets avatar Dec 20 '22 13:12 krahets