krahets / hello-algo

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

translation: refine the translation of data_structure/summary #1374

Closed nedchu closed 1 month ago

nedchu commented 1 month ago

If this pull request (PR) pertains to Chinese-to-English translation, please confirm that you have read the contribution guidelines and complete the checklist below:

The last question in the Chinese version is not found in the initial machine translation. I have added the whole translation on this question.

In Line 10, I use (i)-(iii) to list the benefits of the complement code, because the sentence is too long.

In Line 59, I use the inverse operation of "first negate and then add 1" (the sentence between "" is newly added), to complete the meaning of the sentence.

krahets commented 1 month ago

Hi @nedchu, the line numbers between the old and new versions should match for review. Please check the formatting at https://github.com/krahets/hello-algo/pull/1374/files.

nedchu commented 1 month ago

Hi @nedchu, the line numbers between the old and new versions should match for review. Please check the formatting at https://github.com/krahets/hello-algo/pull/1374/files.

Fixed. I remove the blank Line 21 to match line. We need to add back this blank line after the revision, as the Chinese version uses it to separate the paragraph.

nedchu commented 1 month ago

Thanks all guys for your reviews