3 ms·
Bubble sort is optimal for sorting data stored on tapes (no random access possible). If you have RAM, insertion sort is strictly superior (both simpler code + b
by ynik 3y ago
Bubble sort is optimal for sorting data stored on tapes (no random access possible).
If you have RAM, insertion sort is strictly superior (both simpler code + better performance).