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