首先需要一个递减的步长,这里我们使用的是9、5、3、1(最后的步长必须是1)。 工作原理是首先对相隔9...
代码说明:
首先需要一个递减的步长,这里我们使用的是9、5、3、1(最后的步长必须是1)。 工作原理是首先对相隔9-1个元素的所有内容排序,然后再使用同样的方法对相隔5-1个元素的排序,以次类推。 -First step reduced the need for a long, here is our use of 9,5,3,1 (the final step must be to 1). The first is that on the job between 9-1 months to sort all the content elements, and then use the same method of elements separated by the order of 5-1, an inferior race, and so on.
下载说明:请别用迅雷下载,失败请重下,重下不扣分!