You are viewing a single comment's thread. Return to all comments →
Java Solution
List<Integer> result = new ArrayList<>(); for (int i=0; i<=99; i++) { result.add(0); } for(int i=0; i<arr.size(); i++) { result.set(arr.get(i), result.get(arr.get(i)) + 1); } 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 →
Java Solution