3 ms·
Bubble sort is the first one I learned, so I remember it the best. I never spent any time comparing any of the O(n^2) sorts so it never occurred to me to try a
by mark-r 7y ago
Bubble sort is the first one I learned, so I remember it the best. I never spent any time comparing any of the O(n^2) sorts so it never occurred to me to try a different one.
- deleted 7y ago[deleted]
- carlhjerpe 7y agoAnd here am I, just using what's in the standard library. of the language I'm writing. Never occured to me to try a different one.
- mark-r 7y agoThis was quite a while ago, and the library sort was QSort which had a lot of overhead due to its calling convention. Today I'd have no problem using std::sort instead.