You are viewing a single comment's thread. Return to all comments →
fun countingSort(arr: Array<Int>): Array<Int> { // Write your code here val result = Array(100) { 0 } for (i in 0..<arr.size) { 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 →