Title: feat(sorts): Add Radix Sort algorithm by saviour2 · Pull Request #287 · TheAlgorithms/TypeScript · GitHub
Open Graph Title: feat(sorts): Add Radix Sort algorithm by saviour2 · Pull Request #287 · TheAlgorithms/TypeScript
X Title: feat(sorts): Add Radix Sort algorithm by saviour2 · Pull Request #287 · TheAlgorithms/TypeScript
Description: This pull request introduces a TypeScript implementation of the Radix Sort algorithm. Radix Sort is a fundamental, non-comparison based integer sorting algorithm that was missing from the existing collection. Its inclusion provides a more comprehensive set of sorting algorithms in the repository, showcasing a different sorting paradigm from comparison-based sorts like Quick Sort or Merge Sort. This implementation uses the LSD (Least Significant Digit) method and is designed as a pure function—it does not mutate the original input array but instead returns a new, sorted array. The code is fully typed and includes JSDoc comments for clarity. Related Issue N/A Type of Change Please delete options that are not relevant. [x] New feature (non-breaking change which adds functionality) How Has This Been Tested? The algorithm has been tested locally with a variety of integer arrays, including empty arrays, arrays with negative numbers (if applicable), and arrays with duplicate values. A corresponding test file (radix_sort.test.ts) has been added to the test suite to ensure its correctness and prevent future regressions. (Note: Be sure to actually create and include this test file in your PR.) Checklist: [x] My code follows the style guidelines of this project. [x] I have performed a self-review of my own code. [x] I have commented my code, particularly in hard-to-understand areas, using JSDoc. [x] My changes generate no new warnings or linting errors. [x] I have added tests that prove my feature works. [x] New and existing unit tests pass locally with my changes.
Open Graph Description: This pull request introduces a TypeScript implementation of the Radix Sort algorithm. Radix Sort is a fundamental, non-comparison based integer sorting algorithm that was missing from the existing ...
X Description: This pull request introduces a TypeScript implementation of the Radix Sort algorithm. Radix Sort is a fundamental, non-comparison based integer sorting algorithm that was missing from the existing ...
Opengraph URL: https://github.com/TheAlgorithms/TypeScript/pull/287
X: @github
Domain: Github.com
| route-pattern | /:user_id/:repository/pull/:id/files/:range(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a5983824-5a10-8b40-0a18-c5d50ba6cd62 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 915A:0295:3707BAA:4912101:6A6556B3 |
| html-safe-nonce | 099cea1fe407472f3a104a53954bc667459082b120b5f50ef501671771c3ff7e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTVBOjAyOTU6MzcwN0JBQTo0OTEyMTAxOjZBNjU1NkIzIiwidmlzaXRvcl9pZCI6IjE2OTYxMzAzNjQxOTE2MjY5MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0a2481591c27130c28de0363fd6985ec76b0f736964d1e7275ee2bc439041bdf |
| hovercard-subject-tag | pull_request:2882437829 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/TheAlgorithms/TypeScript/pull/287/files/f45b8c997f6a803de758d531ae82fca745ffa9ce |
| twitter:image | https://avatars.githubusercontent.com/u/44187117?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/44187117?s=400&v=4 |
| og:image:alt | This pull request introduces a TypeScript implementation of the Radix Sort algorithm. Radix Sort is a fundamental, non-comparison based integer sorting algorithm that was missing from the existing ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/TheAlgorithms/TypeScript git https://github.com/TheAlgorithms/TypeScript.git |
| octolytics-dimension-user_id | 20487725 |
| octolytics-dimension-user_login | TheAlgorithms |
| octolytics-dimension-repository_id | 532391729 |
| octolytics-dimension-repository_nwo | TheAlgorithms/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 532391729 |
| octolytics-dimension-repository_network_root_nwo | TheAlgorithms/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 309153364422b3c499922d1a2a6404910a58ed8e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width