Counting Sort 1

  • + 0 comments

    JAVA

        // Write your code here
        List<Integer> res = new ArrayList<>();
        for(int i=0; i<100; i++) {
            res.add(i, Collections.frequency(arr, i));
        }
        return res;