Jump to content

Sorting algorithms/Quicksort: Difference between revisions

→‎{{header|Perl}}: Remove bug with code.
m (→‎{{header|Perl}}: Add example.)
(→‎{{header|Perl}}: Remove bug with code.)
Line 271:
sub quick_sort {
$arr = shift;
local $less = [];
local $pivot_list = [];
local $more = [];
if ($#{$arr} <= 0) {
return $arr;
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.