摘要:        
array = [72,6,57,88,60,42,83,73,48,85]def quick_sort(a) (x=a.pop) ? quick_sort(a.select{|i| i <= x}) + [x] + quick_sort(a.select{|i| i > x}) : [] endp quick_sort(array) ==》[6, 42, 48, 57, 60, 72, 73, 83, 85, 88]    阅读全文
            
                posted @ 2013-04-26 18:30
巴晓鹏
阅读(483)
评论(1)
推荐(2)