首页 > 其他 > 详细

SPOJ #500. Turbo Sort

时间:2014-02-09 17:45:29      阅读:369      评论:0      收藏:0      [点我收藏+]

Sorting is not an out-dated topic. My own in-place qsort got TLE... so, I simply called stl::sort() to get AC.

This thread explains everything: http://stackoverflow.com/questions/5038895/does-stdsort-implement-quicksort Basic qsort has a worst case of O(n^2) and could result in too deep stack. The latest MinGW uses IntroSort\InsertionSort. And Python 2.3+ uses TimSort

To learn these in depth...

SPOJ #500. Turbo Sort

原文:http://www.cnblogs.com/tonix/p/3541659.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!