Hacker News new | past | comments | ask | show | jobs | submit login

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".




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: