@@ -0,0 +1,1389 @@
+package algorithm;%0D%0A%0D%0Aimport java.util.ArrayList;%0D%0Aimport java.util.List;%0D%0Aimport java.util.Scanner;%0D%0A%0D%0Apublic class FullCountingSort %7B%0D%0A%0D%0A%09public static class Solution %7B%0D%0A%0D%0A%09%09public static int quickSortSwapCount = 0;%0D%0A%0D%0A%09%09public static void countingSort(int listSize, Scanner in) %7B%0D%0A%09%09%09List%3CList%3CString%3E%3E countingSort = new ArrayList%3C%3E(100);%0D%0A%09%09%09initArray(countingSort);%0D%0A%09%09%09for (int i = 0; i %3C listSize; i++) %7B%0D%0A%09%09%09%09int intValue = in.nextInt();%0D%0A%09%09%09%09String stringValue = in.next();%0D%0A%09%09%09%09List%3CString%3E list = countingSort.get(intValue);%0D%0A%09%09%09%09if (i %3E= listSize / 2) %7B%0D%0A%09%09%09%09%09list.add(stringValue);%0D%0A%09%09%09%09%7D else %7B%0D%0A%09%09%09%09%09list.add(%22-%22);%0D%0A%09%09%09%09%7D%0D%0A%09%09%09%7D%0D%0A%09%09%09printArrayElements(countingSort);%0D%0A%09%09%7D%0D%0A%0D%0A%09%09private static void initArray(List%3CList%3CString%3E%3E countingSort) %7B%0D%0A%09%09%09for (int i = 0; i %3C 100; i++) %7B%0D%0A%09%09%09%09countingSort.add(i, new ArrayList%3C%3E());%0D%0A%09%09%09%7D%0D%0A%09%09%7D%0D%0A%0D%0A%09%09static void printArrayElements(List%3CList%3CString%3E%3E countingSort) %7B%0D%0A%09%09%09StringBuilder result = new StringBuilder();%0D%0A%09%09%09for (List%3CString%3E list : countingSort) %7B%0D%0A%09%09%09%09for (String value : list) %7B%0D%0A%09%09%09%09%09result.append(value);%0D%0A%09%09%09%09%09result.append(%22 %22);%0D%0A%09%09%09%09%7D%0D%0A%09%09%09%7D%0D%0A%09%09%09System.out.println(result);%0D%0A%09%09%7D%0D%0A%0D%0A%09%09public static void main(String%5B%5D args) %7B%0D%0A%09%09%09try (Scanner in = new Scanner(System.in)) %7B%0D%0A%09%09%09%09int n = in.nextInt();%0D%0A%09%09%09%09countingSort(n, in);%0D%0A%09%09%09%7D%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%0D%0A%09public static void main(String%5B%5D args) %7B%0D%0A%09%09Solution.main(null);%0D%0A%09%7D%0D%0A%0D%0A%7D

Add Solution for FullCountingSort Problem