5 ms·
Are you being cheeky? Cause I would think insertion sort would be a more than reasonable alternative
by Trufa 3y ago
Are you being cheeky? Cause I would think insertion sort would be a more than reasonable alternative
- JohnFen 3y agoNo, I'm serious. With datasets that small, there's very little performance difference between the two methods, so a bubble sort isn't unreasonable at all. Depending on the circumstances, a bubble sort can be the better choice due to other considerations becoming relatively more important.
- bastawhiz 3y agoIn what way?
- usefulcat 3y agoEspecially if there’s little or no performance difference, may as well minimize code size.
- financltravsty 3y agoIs everyone here feeling a bit... devilish? I would pick a standard library sort function at that point.