You are viewing a single comment's thread. Return to all comments →
**var result = [] for (let i = 0; i < 100; i++) { result.push(0) } for (let i = 0; i < arr.length; i++) { result[arr[i]]++; } return result**
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 →