摘要: sort 在 STL 库中是排序函数,有时冒泡、选择等 $\mathcal O(n^2)$ 算法会超时时,我们可以使用 STL 中的快速排序函数 $\mathcal O(n \ log \ n)$ 完成排序 sort 在 algorithm 库里面,原型如下: template <class Ran 阅读全文
posted @ 2017-07-29 11:01 lrj124 阅读(20581) 评论(2) 推荐(4) 编辑