E D R S I H C RSS

QuickSort (rev. 1.1)

ID
Password
Join
The time is right to make new friends.

FrontPage QuickSort

import random def qsort(list):
if len(list) <= 1:
return list

pivot = random.choice(list) list.remove(pivot)
return qsort(it for it in list if it < pivot) + pivot + qsort(it for it in list if it >= pivot)
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2016-06-30 01:38:17
Processing time 0.0487 sec