2 comments

[ 6.6 ms ] story [ 51.1 ms ] thread
a variation of bubble sort, so O(N^2)
I think it's more a variation on Selection Sort. I agree on O(n*n)