![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
邓京博
还原bug真相
展开
-
快排-递归
废话不说,直接上代码public class quickSoort { /** * 快排 递归 * * @param args */ private static int count; public static void main(String[] args) { int[] num = {3, 45, 78...原创 2019-03-07 23:26:32 · 347 阅读 · 0 评论 -
受益网址
https://github.com/h2pl/leetcodehttp://www.importnew.com/19011.html原创 2019-03-24 22:13:11 · 212 阅读 · 0 评论 -
二分查找
二分查找public int search(int key, int[] array) { int l = 0, h = array.length - 1; while (l <= h) { int mid = l + (h - l) / 2; if (key == array[mid]) return mid; if (...原创 2019-03-26 21:15:46 · 177 阅读 · 0 评论