You are viewing a single comment's thread. Return to all comments →
Typescript:
function countingSort(arr: number[]): number[] { const out = new Array(100).fill(0); for (let i = 0; i < arr.length; ++i) { out[arr[i]]++ } return out; }
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 →
Typescript: