题目:二叉树的中序遍历。思路:用递归来写中序遍历非常简单。但是题目直接挑衅说,----->"Recursive
solution is trivial"。好吧。谁怕谁小狗。递归代码: 1 List inOrder = new ArrayList(); 2 3 public
...
分类:
其他好文 时间:
2014-06-29 12:55:36
阅读次数:
176
查看端口占用情况netstat -an|grep LIST|grep 15
数据库监听占用情况。netstat -an|grep 1521 1521为端口号使用如下语句kill占用端口的进程linux下杀掉占用端口的进程ps
-efww|grep appltest|grep -v grep|cut ...
分类:
Web程序 时间:
2014-06-06 08:22:31
阅读次数:
252
Given a sorted linked list, delete all
duplicates such that each element appear onlyonce.For
example,Given1->1->2, return1->2.Given1->1->2->3->3,
retu...
分类:
其他好文 时间:
2014-06-06 07:00:36
阅读次数:
269
Given a sorted linked list, delete all nodes
that have duplicate numbers, leaving onlydistinctnumbers from the original
list.For example,Given1->2->3-...
分类:
其他好文 时间:
2014-06-06 06:57:18
阅读次数:
271
Given a linked list, reverse the nodes of a
linked list k at a time and return its modified list. If the number of nodes is
not a multiple of k then l...
分类:
其他好文 时间:
2014-06-05 22:13:19
阅读次数:
391
1. 显示所有权限adb shell pm list permissions2. 列出USB
Android设备中的权限列表adb -d shell pm list permissions3. 列出指定Android设备中的权限列表adb -s
emulator-5554 shell pm list...
分类:
移动开发 时间:
2014-06-05 21:26:19
阅读次数:
233
A站弄个缓存,并且开放出一个读取借口给B站B站读取数据的时候,调用该接口和数据库内的数据累加,然后进行限时即可----------------------另外其他方法session服务、memcached或者用一些NOSQL的数据库,如下数据库的话建议用mango、redis,如果还想更快就用hiv...
分类:
其他好文 时间:
2014-06-05 20:48:22
阅读次数:
267
1 2 OGNL是从ActionContext中获取数据的。 3 4
ActionContext的结构: 5 ValueStack: 6 List:动作类放在此处。取存放在ValueStack中的root的对象的属性,直接写即可
...
分类:
其他好文 时间:
2014-06-05 19:26:57
阅读次数:
471
Given a list, rotate the list to the right
bykplaces, wherekis non-negative.For
example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL./**
*...
分类:
其他好文 时间:
2014-06-05 13:44:26
阅读次数:
250
Given a linked list, swap every two adjacent
nodes and return its head.For example,Given1->2->3->4, you should
return the list as2->1->4->3.Your algor...
分类:
其他好文 时间:
2014-06-05 13:41:44
阅读次数:
231