任何人都知道我可以定义输入集合的任何程序,并且我可以逐步可视化排序算法(气泡、快速、外壳等)
因此一些
1th iteration result: [3, 5, 7, 1, 8, 9]
2th iteration result: [3, 5, 1, 7, 8, 9]
3th iteration result: [3, 1, 5, 7, 8, 9]
4th iteration result: [1, 3, 5, 7, 8, 9]
5th iteration result: [1, 3, 5, 7, 8, 9]
Final result: [1, 3, 5, 7, 8, 9]