10 100 10 20 40 30 50 80 60 70 5 15
sort => 5 10 15 20 30 40 50 60 70 80
|有15
|有10
|無15
|有5
|有15
|無10
|無15
|有15
|有10
|無15
|無5
|有15
|無10
|無15
範例輸入 #110 100 10 20 40 30 50 80 60 70 5 15
sort => 5 10 15 20 30 40 50 60 70 80
|有15
|有10
|無15
|有5
|有15
|無10
|無15
|有15
|有10
|無15
|無5
|有15
|無10
|無15
然後就繼續下去直到碰壁