You are viewing a single comment's thread. Return to all comments →
In java:
int frequency = 100; List<Integer> alternativeSortingList = new ArrayList<>(Collections.nCopies(100,0)); for (Integer integer : arr) { alternativeSortingList.set(integer, alternativeSortingList.get(integer)+1 ); } return alternativeSortingList;
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 →
In java: