mirror of
https://github.com/chefyuan/algorithm-base.git
synced 2024-11-28 06:48:53 +00:00
chefyuan
This commit is contained in:
parent
dad4faeb01
commit
d8bb2881d8
@ -39,7 +39,7 @@ class Solution {
|
|||||||
//根据增量分组
|
//根据增量分组
|
||||||
for (int i = 0; i < increment; ++i) {
|
for (int i = 0; i < increment; ++i) {
|
||||||
//这快是不是有点面熟,回去看看咱们的插入排序
|
//这快是不是有点面熟,回去看看咱们的插入排序
|
||||||
for (int j = i + increment; j < nums.length; ++j) {
|
for (int j = i + increment; j < nums.length; j += increment) {
|
||||||
int temp = nums[j];
|
int temp = nums[j];
|
||||||
int k;
|
int k;
|
||||||
for (k = j - increment; k >= 0; k -= increment) {
|
for (k = j - increment; k >= 0; k -= increment) {
|
||||||
|
Loading…
Reference in New Issue
Block a user