You are viewing a single comment's thread. Return to all comments →
c# solution:
public static List countingSort(List arr) { var zeroArray = new int[100];
for (var i = 0; i < arr.Count; i++) { zeroArray[arr[i]]++; } return zeroArray.ToList(); }
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 →
c# solution:
public static List countingSort(List arr) { var zeroArray = new int[100];