I wrote intentionally bad sorting algorithms for a while. One worked by making a random interchange, and then checking to see if the list was sorted. I refer to this as the minimal maximally stupid sort.
You to be inventive to get a sorting algorithm worse than this, but it's quite fun.
I considered writing a book of them called "101 stupid sorts".
You to be inventive to get a sorting algorithm worse than this, but it's quite fun.
I considered writing a book of them called "101 stupid sorts".