Skip to content

Commit 75d7cd0

Browse files
Merge pull request #299 from git-zjx/patch-6
bucketSort 函数参数问题
2 parents 6dba4a3 + 56c915d commit 75d7cd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php/13_sort/bucketSort.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
$numbers = [11,23,45,67,88,99,22,34,56,78,90,12,34,5,6,91,92,93,93,94,95,94,95,96,97,98,99,100];
77
$size = 10;
8-
var_dump(bucketSort($numbers,10));//加在了quickSort文件,请忽略前几个打印
8+
var_dump(bucketSort($numbers));//加载了quickSort文件,请忽略前几个打印
99

1010

1111
/**
@@ -39,7 +39,7 @@ function bucketSort(array $numbers) {
3939
continue;
4040
}
4141
if( $length > 10) {
42-
$bucket = bucketSort($bucket,$length);
42+
$bucket = bucketSort($bucket);
4343
}
4444

4545
quickSort($bucket,0,count($bucket)-1);

0 commit comments

Comments
 (0)