complete-intro-to-computer-science icon indicating copy to clipboard operation
complete-intro-to-computer-science copied to clipboard

Radix Sort test case issue

Open kayac-chang opened this issue 4 years ago • 0 comments

Hello, teacher @btholt

I figure out the test case of Radix Sort on CodeSandBox

which using sort method without passing compareFunction, this will using char compare instead of number compare.

Maybe this should be fixed by

expect(ans).toEqual(nums.sort((a, b) => a - b));

kayac-chang avatar Jul 19 '21 12:07 kayac-chang