2 comments

[ 3.2 ms ] story [ 17.9 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)