题目:Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthes....
分类:
编程语言 时间:
2014-07-31 02:41:15
阅读次数:
229
题目:Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the neares....
分类:
编程语言 时间:
2014-07-31 02:30:25
阅读次数:
264
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given [100, 4, 200, 1, 3, 2], The longes...
分类:
其他好文 时间:
2014-07-31 02:19:45
阅读次数:
243
如何把textview的一些文字加上背景色:
Spannable str = new SpannableString("#fdsfdfsdfdsfd#");
Matcher matcher = getEmailPattern().matcher((CharSequence) str);
while (matcher.find()) {
int start = matcher.sta...
分类:
移动开发 时间:
2014-07-31 00:02:05
阅读次数:
427
先目前将一个sn9c291+ov9712的模块驱动在fedora上加载成功,可是在使用mplayer却无法播放,不知道为何?
前后对比发现dev目录下多了video0,video1 设备节点已经出来,video1 是H264的节点
[root@localhost mplayer]#
mplayer tv:// -tv driver=v4l2:...
分类:
其他好文 时间:
2014-07-30 23:57:55
阅读次数:
789
最近开始学习android,开发一个小项目,功能很简单,就是从服务器上获取数据,之后显示在手机上。打算把访问服务器的功能打包成一个jar文件。然后android 引入jar包。在eclipse 里 新建了一个java项目。之后完成代码测试,打包成jar文件 都很顺利。引用到android项目中,调试...
分类:
移动开发 时间:
2014-07-30 23:40:35
阅读次数:
248
题目描述 Give you a lot of positive integers, just to find out how many prime numbers there are.. In each case, there is an integer N representing the num...
分类:
其他好文 时间:
2014-07-30 23:35:35
阅读次数:
300
function doSubmit() {
$(‘#T_form select‘).each(function(){
$(this).find(‘:selected‘).attr(‘selected‘, true);
});
$("#T_form :text").each(function(){
$(this).attr(‘value‘, $(this).val());
})...
分类:
移动开发 时间:
2014-07-30 21:02:44
阅读次数:
209
对于web系统的自动化测试,selenium使用比较多,它支持多种语言java、python、C#等,本文中使用java。selenium执行case时,支持截图,代码如下: File?file?=??((TakesScreenshot)driver).getScreenshotAs(O...
分类:
其他好文 时间:
2014-07-30 21:02:14
阅读次数:
311
Problem Description
Given an N * M matrix with each entry equal to 0 or 1. We can find some rectangles in the matrix whose entries are all 1, and we define the maximum area of such rectangle as thi...
分类:
移动开发 时间:
2014-07-30 20:48:34
阅读次数:
260