You are viewing a single comment's thread. Return to all comments →
My answer in typescript, simple
function countingSort(n: number, arr: number[]): number[] { let arr_count = Array(100).fill(0) for (let i = 0; i < arr.length; i++) arr_count[arr[i]]++ return arr_count; }
Seems like cookies are disabled on this browser, please enable them to open this website
Counting Sort 1
You are viewing a single comment's thread. Return to all comments →
My answer in typescript, simple