introduction of algorithms----insertion sort

很简单的算法,就是打漏了一个字母半天没发现,醉了。。。

就让我在这里无限的发牢骚吧……

实验用一个数组,内容是 2, 1, 3, 9, 5, 6, 4, 8, 7, 10

理想输出为 1,2,3,4,5,6,7,8,9,10

错的时候是这样

改正后是这样:

就是这样 ,喵

posted @ 2015-05-14 17:45  J_Rui  阅读(126)  评论(0编辑  收藏  举报