python快排:一个pythonic的写法

来自 http://cs231n.github.io/python-numpy-tutorial/python def quicksort(arr): if len(arr) <= 1: return arr pivot = arr[len(arr) // 2] left = [x for x in arr if x < pivot] middle
相关文章
相关标签/搜索