3 ms·
Does anyone know why they used bubblesort in the first place? It is known for its bad performance, so what other factors came into play? Number of ops, maybe?
by rf15 3y ago
Does anyone know why they used bubblesort in the first place? It is known for its bad performance, so what other factors came into play? Number of ops, maybe?
- phoenixreader 3y agoAccording to the Twitter thread linked, at the beginning there were only 30 items, so using bubblesort didn't matter. The number of items has since grown to a thousand.
- professoretc 3y agoFor 30 items bubblesort might very well have been faster than mergesort.