using System.Collections;
using System.Collections.Generic;
public static void Main()
Console.WriteLine(string.Join(",", bucketSort(new int[]{2,5,4,3,10, 18, 12, 0})));
private static int[] bucketSort(int[] arr) {
int numberOfBuckets = arr.Length;
int[] newarr = new int[numberOfBuckets];
Dictionary<int, int> buckets = new Dictionary<int, int>();
for (int i = min; i <= max; ++i) {
foreach (int value in arr) {
foreach ( int key in buckets.Keys) {
for(int k=0;k<buckets[key];k++){