3 ms·
Fair point. Perhaps it is harder than I thought without looking anything up or testing? At least to get the canonical version written down.
by dickeytk 7y ago
Fair point. Perhaps it is harder than I thought without looking anything up or testing? At least to get the canonical version written down.
- eesmith 7y agoI think it's that "bubble sort" has come to mean "a simple O(N²) sort implementation", of which there are many. But the selection sort just feels more natural than the actual bubble sort. At the very least, selection sort doesn't get my face to scrunch up in a scowl at all those memory movements.