1 2 3 4 5 6 7 8 9 10 11
| [5, 4, 3, 2, 1] 4 compore 5 -> [4, 5, 3, 2, 1] 3 compore 5 -> [4, 3, 5, 2, 1] 3 compore 4 -> [3, 4, 5, 2, 1] 2 compore 5 -> [3, 4, 2, 5, 1] 2 compore 4 -> [3, 2, 4, 5, 1] 2 compore 3 -> [2, 3, 4, 5, 1] 1 compore 5 -> [2, 3, 4, 1, 5] 1 compore 4 -> [2, 3, 1, 4, 5] 1 compore 3 -> [2, 1, 3, 4, 5] 1 compore 2 -> [1, 2, 3, 4, 5]
|