You are viewing a single comment's thread. Return to all comments →
public static List<int> countingSort(List<int> arr) { List<int> result = Enumerable.Repeat(0, 100).ToList(); for(int i=0; i<arr.Count; 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 →