Quick sorting recursive call

xiaoxiao2021-03-05  52

Function QSORT (C, L, H)

{

C = Document.form1.textResult.Value;

Str = "" "

SB = ""

IF (l

{for (m = 0; M

{IF (m == ss.length-1)

Str = ss [m];

Else

Str = ss [m] ","

}

SB = STR "
";

Pivot = Sort (SS, L, H);

WINDOW.SBS.INNERHTML = SB;

QSORT (SS, L, Pivot-1);

QSORT (SS, Pivot 1, H);

}

}

转载请注明原文地址:https://www.9cbs.com/read-36692.html

New Post(0)