Just wondering how python works with arrays. Here is quick sort algorithm written in Python.
Only one line of code:
def qsort(L):
if L == []: return []
return qsort([x for x in L[1:] if x< L[0]]) + L[0:1] + qsort([x for x in L[1:] if x>=L[0]])
[Read More]
