Skip to content

Conversation

sunshinesDL
Copy link
Contributor

K大好,小白建议在栈的类比这句话前面增加一个条件 -- "每次只能移动一个盘子",
如此不仅可以对应后面的 将上面的盘子依次移走,从而规避了 "可以将上面的盘子一次移走" 的歧义;而且对应了每次移除一个元素的出栈操作。
欢迎 K大及评阅大佬指正!😁

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:

  • This PR represents the translation of a single, complete document, or contains only bug fixes.
  • The translation accurately conveys the original meaning and intent of the Chinese version. If deviations exist, I have provided explanatory comments to clarify the reasons.

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:

  • I have thoroughly reviewed the code, focusing on its formatting, comments, indentation, and file headers.
  • I have confirmed that the code execution outputs are consistent with those produced by the reference code (Python or Java).
  • The code is designed to be compatible on standard operating systems, including Windows, macOS, and Ubuntu.

sunshinesDL and others added 2 commits July 28, 2025 22:58
K大好,小白建议在这句话前面增加一个条件 -- "每次只能移动一个盘子",如此不仅可以对应后面的 `将上面的盘子**依次**移走`,从而避免了 "可以将上面的盘子一次移走" 的歧义;而且对应了每次移除一个元素的出栈逻辑。
Corrected phrasing for clarity in stack explanation.
Copy link
Owner

@krahets krahets left a 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!

@krahets krahets added documents documents-related polish Decorative detail or feature labels Sep 20, 2025
@krahets krahets merged commit 218e21e into krahets:main Sep 20, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documents documents-related polish Decorative detail or feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants