You are viewing a single comment's thread. Return to all comments →
JS
function countingSort(arr) { const counterArray = Array(100).fill(0); arr.forEach((element) => { counterArray[element]++; }); return counterArray; }
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 →
JS