You are viewing a single comment's thread. Return to all comments →
//Java solution public static List<Integer> countingSort(List<Integer> arr) { // Write your code here Integer countArr[] = new Integer[100]; Arrays.fill(countArr, 0); for(int i=0;i<arr.size();i++){ countArr[arr.get(i)]++; } return Arrays.asList(countArr); }
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 →