Update 05_quicksort.php (#204)

This commit is contained in:
Mikhail Bokov
2022-11-19 04:28:15 +07:00
committed by GitHub
parent 70d4d231bf
commit c91f1ad37f

View File

@@ -6,7 +6,7 @@ function quicksort(array $array) {
return $array;
} else {
// recursive case
$pivot = $array[0];
$pivot = $array[array_key_first($array)];
var_dump($array);
// sub-array of all the elements less than the pivot