diff --git a/BucketSort.java b/BucketSort.java new file mode 100644 index 0000000..fd76474 --- /dev/null +++ b/BucketSort.java @@ -0,0 +1,34 @@ +import java.util.*; + +public class BucketSort{ + + public static void sort(int[] a, int maxVal) { + int [] bucket=new int[maxVal+1]; + + for (int i=0; i