![](https://img-blog.csdnimg.cn/20190927151043371.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
5、算法
专注互联网使用算法
binfire
这个作者很懒,什么都没留下…
展开
-
经典算法之查找
二分查找 1 public class BinarySearch 2 { 3 public static int Search(Listint> list,int key) 4 { 5 int low = 0; 6 int high = list.Count - 1; 7原创 2015-05-18 20:59:49 · 295 阅读 · 0 评论 -
经典算法之七大排序
【交换排序】:冒泡排序,快速排序 【选择排序】:简单选择排序,堆排序 【插入排序】:简单插入排序,希尔排序 ;归并排序 一:交换排序 public class BubbleSort { public static List Sort(List list) { int temp = 0; /原创 2015-05-18 20:59:46 · 313 阅读 · 0 评论