4 ms·
Sometimes you just want something that's "small, quick 'n' dirty". Maybe not often, but enough times that it's the correct solution. A merge-sort is better but
by simonblack 3y ago
Sometimes you just want something that's "small, quick 'n' dirty". Maybe not often, but enough times that it's the correct solution.
A merge-sort is better but it's a lot more complex to write and run.
At a guess, I'd say that 16 would be the upper limit for me to use a bubble sort.