You are viewing a single comment's thread. Return to all comments →
For Java -> 8
public static List<Integer> countingSort(List<Integer> arr) { List<Integer> result = new ArrayList<>(); for (int i = 0; i < 100; i++) { result.add(Collections.frequency(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 →
For Java -> 8