3 ms·
Insertion sort is probably the one you'd come up with anyway, if you didn't know any sorting algorithms. If asked to sort a deck of cards, guess which algorithm
by Smaug123 6y ago
Insertion sort is probably the one you'd come up with anyway, if you didn't know any sorting algorithms. If asked to sort a deck of cards, guess which algorithm almost anyone would naively use.
If there are instead two people to sort the deck of cards, they'll probably invent some variant on a merge sort!