Skip to content

optimized the js api use of counting_sort chapter for Math.max()#1748

Merged
krahets merged 5 commits intokrahets:mainfrom
Asashishi:main
May 17, 2025
Merged

optimized the js api use of counting_sort chapter for Math.max()#1748
krahets merged 5 commits intokrahets:mainfrom
Asashishi:main

Conversation

@Asashishi
Copy link
Contributor

@Asashishi Asashishi commented May 7, 2025

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.

program output

计数排序(无法排序对象)完成后 nums = [ 0, 0, 0, 1, 1, 2, 2, 2, 4, 4 ]
计数排序完成后 nums1 = [ 0, 0, 0, 1, 1, 2, 2, 2, 4, 4 ]

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 code Code-related polish Decorative detail or feature labels May 17, 2025
@krahets krahets merged commit 09f7223 into krahets:main May 17, 2025
7 checks passed
magentaqin pushed a commit to magentaqin/hello-algo that referenced this pull request May 26, 2025
…hets#1748)

* Update counting_sort.ts optimized the Math.max

* Update counting_sort.ts

* Update counting_sort.js

* Update radix_sort.ts

* Update radix_sort.js
magentaqin pushed a commit to magentaqin/hello-algo that referenced this pull request May 26, 2025
…hets#1748)

* Update counting_sort.ts optimized the Math.max

* Update counting_sort.ts

* Update counting_sort.js

* Update radix_sort.ts

* Update radix_sort.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code Code-related polish Decorative detail or feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants