;; sort : list-of-numbers -> list-of-numbers (sorted)
;; to create a list of numbers with the same numbers as
;; alon sorted in descending order
(define (sorts alon)
(cond
[(empty? alon) empty]
[(cons? alon) (insert (first alon) (sorts (rest alon)))]))
(check-expect (sorts (list 3 5 6 7)) (list 7 6 5 3))
如果输入的长度低于某个阈值,则使用上述方法开发一个快速排序版本的练习题
我不太清楚这个问题或他们想要的输出是什么。有什么帮助吗?