Skip to content

Radix sort in javascript #108

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added 2 more unit tests
  • Loading branch information
Adithya committed Nov 19, 2021
commit 6488de0bdd1e34a3ef6f7da7e39a583a56b350aa
6 changes: 5 additions & 1 deletion src/algorithms/sorting/radix-sort.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ function radixSort(arr) {
return arr;
}
// unit test
console.log(radixSort([5,3,88,235,65,23,4632,234]))
console.log(radixSort([5,3,88,235,65,23,4632,234]))
// unit test 2
console.log(radixSort([802, 630, 20, 745, 52, 300, 612, 932, 78, 187]))
// unit test 3
console.log(radixSort([45, 2, 56, 2, 5, 6, 34, 1, 56, 89, 33]))