two-wrongs.com
It's strange that they repeat until the list is sorted. I usually repeat the pass N times, ignoring the last items to get a nice exactly N(N-1)/2 time
Reply on news.ycombinator.com