You are viewing a single comment's thread. Return to all comments →
public static List<Integer> countingSort(List<Integer> arr) { int[] a = new int[100]; for (Integer i : arr) { a[i]++; } return Arrays.stream(a).boxed().collect(Collectors.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 →