You are viewing a single comment's thread. Return to all comments →
C# Solution using Dictionary:
Dictionary<int, int> count = new Dictionary<int, int>(); for(int i = 0; i < 100; i++) { count.Add(i, arr.Count(x => x == i)); } return count.Values.ToList();
Seems like cookies are disabled on this browser, please enable them to open this website
Counting Sort 1
You are viewing a single comment's thread. Return to all comments →
C# Solution using Dictionary: