题目:二叉树的中序遍历。思路:用递归来写中序遍历非常简单。但是题目直接挑衅说,----->"Recursive
solution is trivial"。好吧。谁怕谁小狗。递归代码: 1 List inOrder = new ArrayList(); 2 3 public
...
分类:
其他好文 时间:
2014-06-29 12:55:36
阅读次数:
176
sudo nano /etc/apt/sources.list源:deb
http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib
non-free rpi deb-src http://mirrors.tu...
分类:
Web程序 时间:
2014-06-29 07:58:09
阅读次数:
384
import java.util.ArrayList;import
java.util.Arrays;import java.util.List;import java.util.regex.Pattern;/** * *
在线性时间内抽取主题类(新闻、博客等)网页的正文。 采用了基于行块分布函数....
分类:
其他好文 时间:
2014-06-29 07:45:25
阅读次数:
283
import java.io.File;import
java.io.IOException;import java.util.ArrayList;import java.util.List;import
javax.xml.parsers.ParserConfigurationException;...
分类:
其他好文 时间:
2014-06-29 07:43:35
阅读次数:
244
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
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