-
Notifications
You must be signed in to change notification settings - Fork 14.5k
translation: Update EN translation for Introduction Chapter #1739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1. Divide the playing cards into "ordered" and "unordered" sections, assuming initially the leftmost card is already in order. | ||
2. Take out a card from the unordered section and insert it into the correct position in the ordered section; after this, the leftmost two cards are in order. | ||
3. Continue to repeat step `2.` until all cards are in order. | ||
3. Repeat step `2`, inserting one playing card from the unsorted section into the sorted section each round, until all the cards are in order. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think Repeat step
2. until all the cards are in order
. is clearer, as it emphasizes the repetitive nature of the algorithm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. This expression is more concise!
1373b77
to
a5dddee
Compare
|
||
- Data structures are the foundation of algorithms. They provide structured data storage and methods for manipulating data for algorithms. | ||
- Algorithms are the stage where data structures come into play. The data structure alone only stores data information; it is through the application of algorithms that specific problems can be solved. | ||
- Algorithms inject vitality into data structures. The data structure alone only stores data information; it is through the application of algorithms that specific problems can be solved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inject vitality into
is a bit more abstract compared to the original.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR!
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:
If this pull request (PR) is associated with coding or code transpilation, please attach the relevant console outputs to the PR and complete the following checklist: