![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
文章平均质量分 78
jessir
这个作者很懒,什么都没留下…
展开
-
二分查找(实现)
long binsearch(long all[],long n,int max_friends) { int low = 0,high = n-1,mid; if(all[low] == max_friends) return low; if(all[high] == max_friends) return high;原创 2013-12-05 18:16:37 · 541 阅读 · 0 评论 -
计算机 算法 经典书籍
原文地址:http://luoypeng.blog.163.com/blog/static/47275404201182293012142/ 学计算机的人是幸福的,因为在这个领域中有如此多的通俗易懂(相对来说)的经典好书,你需要做的只是坚持把它们一本一本读下去而已。在这里列出一些我看过或者准备看的算法书籍,以供参考。 1. CLRS 算法导论转载 2013-07-24 21:45:26 · 1207 阅读 · 0 评论 -
[转]编程面试的10大算法概念汇总(译)
http://blog.jobbole.com/52144/转载 2013-11-29 21:57:31 · 610 阅读 · 0 评论 -
快排 (自己实现)
void quick_sort(int a[],int x,int y) { int xx = x,yy = y; int k = a[x]; if(x >= y) return; while(xx != yy) { while(xx = k) yy--; a[xx] = a[yy]; while(xx a[yy] = a[xx]; } a[xx] = k; quick原创 2013-12-03 23:50:21 · 631 阅读 · 0 评论