Remix.run Logo
Ask HN: Favorite Sorting Algorithm?
3 points by akashwadhwani35 10 hours ago | 4 comments

Bubble Sort.

Terrible in practice, but probably the first algorithm that made me understand what “sorting” actually means.

I respect it for that.

fjfaase 9 hours ago | parent | next [-]

There are some simple ways to improve bubble sort. The first is to move in two directions. The second is to first start comparing elements at a large distance than one and reduce the distance on how often element needed to be swapped.

modulusme 9 hours ago | parent | prev | next [-]

Merge sort

orionblastar 9 hours ago | parent | prev | next [-]

Quick Sort

dhruvyads 10 hours ago | parent | prev [-]

Bogo sort