|
|
|
|
|
by bjoli
1716 days ago
|
|
That brings up memories! I did the same thing. We had to sort a million integers in the range 0-1000 (exclusive range). I did a counting sort, and beat every other solution handily. In my case, though, the teacher disqualified my solution since the resulting lists didn't contain the same fixnums as the one i sorted, which I argued was stupid. In the end I implemented a merge sort with some tricks and won anyway. |
|