查找第k个数字的位置
摘要:
今天读到一篇文章:http://www.topcoder.com/tc?module=Static&d1=tutorials&d2=importance_of_algorithms其中提到用随机算法找数组中第k大数字,于是试着写了一下: #include #include using namespace std;#include #include size_t rand(size_t maxn){... 阅读全文
posted @ 2007-02-25 00:16 kaikai 阅读(489) 评论(1) 推荐(0) 编辑