FrontPage
FindPage
TitleIndex
RecentChanges
UserPreferences
QuickSort (rev. 1.1)
ID
Password
Join
The time is right to make new friends.
1000개의랜덤한알파벳생성
Debugging
FrontPage
Undo/Redo
FrontPage
›
QuickSort
Quick Sort
import random def qsort(list):
if len(list) <= 1:
return list
pivot = random.choice(list) list.remove(pivot)
return qsort(
i
t for it in list if it < pivot
) +
p
ivot
+ qsort(
i
t for it in list if it >= pivot
)
ShowPage
FindPage
DeletePage
LikePages
last modified 2016-06-30 01:38:17
Processing time 0.0487 sec