摘要: 最近两道题TLE, 把 sort 改成 stable_sort 就过了, 所以总结一下。 cplusplus.com 上没有说 stable_sort 的实现算法, stable 是稳定的意思, 也许使用的是归并排序 在大多数测试中, stable_sort 的速度快于 sort, 但内存大于 so 阅读全文
posted @ 2020-10-27 21:40 YouXam 阅读(183) 评论(1) 推荐(2) 编辑