You are viewing a single comment's thread. Return to all comments →
Scala solution
def countingSort(arr: Array[Int]): Array[Int] = { // Write your code here val frequency = Array.fill(100)(0) for (num <- arr) { frequency(num) += 1 } frequency }
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 →
Scala solution