algorithms-exercises icon indicating copy to clipboard operation
algorithms-exercises copied to clipboard

fix: radix sort test to use spread operator and correct js syntax

Open bansalgautam opened this issue 2 weeks ago • 0 comments

In the second test case for radix sort there were two bugs

  1. It uses incorrect JS Syntax for sorting
  2. 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.

bansalgautam avatar Dec 14 '25 17:12 bansalgautam