会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
沙漠里的小鱼
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
11
下一页
2019年3月3日
二分查找
摘要: public int test(int[] arry,int key){ int low=0; int high=arry.length-1; while(lowkey){ high=mid-1; } else return m...
阅读全文
posted @ 2019-03-03 22:16 沙漠里的小鱼
阅读(70)
评论(0)
推荐(0)
2019年2月23日
深度优先遍历和广度优先遍历
摘要: //深度遍历 private void depthQuery(Node root){ Stack stack = new Stack(); stack.push(root); while (stack.empty() ==false){ Node node = stack...
阅读全文
posted @ 2019-02-23 12:07 沙漠里的小鱼
阅读(144)
评论(0)
推荐(0)
2018年10月21日
把自己分支的内容合并到主分支上
摘要: idea切换到主分支master 然后选择自己的分支 进行Merge操作 最后进行git Repository push 操作
阅读全文
posted @ 2018-10-21 10:54 沙漠里的小鱼
阅读(562)
评论(0)
推荐(0)
2018年10月19日
idea新建自己的一个分支
摘要: 打开idea 然后New branch 然后git Repository push
阅读全文
posted @ 2018-10-19 10:52 沙漠里的小鱼
阅读(3831)
评论(0)
推荐(0)
2018年10月11日
单链表反转
摘要: public Node reverse(Node root){ Node newNode = null; Node node = root; while (node !=null){ Node temp = node.next; node.next =newNode; ...
阅读全文
posted @ 2018-10-11 18:08 沙漠里的小鱼
阅读(98)
评论(0)
推荐(0)
2018年10月10日
二叉树的遍历
摘要: class Node { private int data; private Node leftNode; private Node rightNode; public Node(int data, Node leftNode, Node rightNode){ this.data = data; ...
阅读全文
posted @ 2018-10-10 19:16 沙漠里的小鱼
阅读(124)
评论(0)
推荐(0)
2018年10月3日
java 归并排序
摘要: public void mergeSort(int[] arry, int low ,int high){ if (low < high){ int middle = ( low +high)/2 ; mergeSort(arry,low,middle); mergeSort(arry,middle+...
阅读全文
posted @ 2018-10-03 15:08 沙漠里的小鱼
阅读(84)
评论(0)
推荐(0)
java 快速排序
摘要: public static void quckSort(int[] arry,int low ,int high){ if (low = temp ){ high-- ; } arry[low] =arry[high] ; while (low < high && a...
阅读全文
posted @ 2018-10-03 15:06 沙漠里的小鱼
阅读(93)
评论(0)
推荐(0)
java 堆排序
摘要: public void heapSort(int[] arry){ int len= arry.length -1 ; for(int i = (len-1)/2 ;i>=0 ;i--){ buildHeap(arry,i,len); } for(int i = len ;i >0 ;i--){ ...
阅读全文
posted @ 2018-10-03 10:28 沙漠里的小鱼
阅读(76)
评论(0)
推荐(0)
2017年10月19日
cglib动态代理
摘要: public class CglibProxy implements MethodInterceptor { private Object target; public Object createProxy(Object target) { this.target = target; Enhancer enhancer = new Enhan...
阅读全文
posted @ 2017-10-19 16:57 沙漠里的小鱼
阅读(121)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
11
下一页
公告