Re:FreeBSD replaces bubblesort with mergesort on SYSINTs, re...
by donkeybeer on Monday August 21, 2023 @12:18PM
(#37211655)
I trust myself most to implement selection sort, its the most intuitive to me: just keep finding the next smallest element in the array and place it in its position.
I can never remember the loop bounds of bubble sort, always have to look it up.
I can never remember the loop bounds of bubble sort, always have to look it up.