Jump to content

Sorting algorithms/Quicksort: Difference between revisions

m (added FunL)
Line 2,173:
start, endi = start or 1, endi or #t
--partition w.r.t. first element
if(endi - start < 21) then return t end
local pivot = start
for i = start + 1, endi do
Cookies help us deliver our services. By using our services, you agree to our use of cookies.