algorithms-exercises
algorithms-exercises copied to clipboard
fix: radix sort test to use spread operator and correct js syntax
In the second test case for radix sort there were two bugs
- It uses incorrect JS Syntax for sorting
- nums.sort() was sorting same reference array, which method radixSort() did, hence test case was passing everytime, not matter what is returned from radixSort() method in the same array reference.