Sorting algorithms/Counting sort: Difference between revisions

m
Improved D entry
m (Improved D entry)
Line 244:
<lang d>import std.stdio, std.algorithm;
 
void countingSort(int[] array, in size_t min, in size_t max) {
pure nothrow {
auto count = new int[max - min + 1];
foreach (number; array)