From 497f27f6309f6943915a513ed3e0ff3b55d0f7e8 Mon Sep 17 00:00:00 2001 From: Varun Upadhyay Date: Wed, 25 Oct 2017 06:32:46 -0700 Subject: [PATCH] Delete CountSort.java Removing as a generic version of counting sort already exists in Sorts [Counting Sort](https://github.com/TheAlgorithms/Java/blob/master/Sorts/CountingSort.java) --- Sorts/CountSort.java | 47 -------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 Sorts/CountSort.java diff --git a/Sorts/CountSort.java b/Sorts/CountSort.java deleted file mode 100644 index 232df591..00000000 --- a/Sorts/CountSort.java +++ /dev/null @@ -1,47 +0,0 @@ -public class CountingSort -{ - public static void sort(char arr[]) - { - int n = arr.length; - - // The output character array that will have sorted arr - char output[] = new char[n]; - - // Create a count array to store count of inidividul - // characters and initialize count array as 0 - int count[] = new int[256]; - for (int i = 0; i < 256; ++i) - count[i] = 0; - - // store count of each character - for (int i=0; i