显示中文会变成乱码解决方案:Windows- >Pereferences-
>General->Workspace- >Text File Encoding
选项下选择other,然后输入"GBK"即可当然你系统安装了东亚字体的支持才行,控制面板-区域选项里安装。
分类:
系统相关 时间:
2014-05-10 10:12:30
阅读次数:
358
这两道题用递归的解法都很简单,只是稍有不同。下面是AC代码: 1 /** 2 * Given a
binary tree, find its minimum depth. 3 * the minimum depth is the number of
nodes along th...
分类:
其他好文 时间:
2014-05-10 08:47:32
阅读次数:
271
这道题因为不仔细的缘故两次过,与Maximum Depth of Binary
Tree问题类似,区别在于这个问题中,如果一个节点左子树为空、右子树有值,则该节点的深度应取决于右子树,而不能直接取min{左,右} 1 /** 2 *
Definition for binary tree 3 * .....
分类:
其他好文 时间:
2014-05-10 01:40:13
阅读次数:
293
Given two wordsword1andword2, find the minimum
number of steps required to convertword1toword2. (each operation is counted as 1
step.)You have the fol...
分类:
其他好文 时间:
2014-05-10 01:09:28
阅读次数:
325
Given two words word1 and word2, find the
minimum number of steps required to convert word1 to word2. (each operation is
counted as 1 step.)You have t...
分类:
其他好文 时间:
2014-05-09 19:09:35
阅读次数:
318
* ios是一款由苹果公司开发的操作系统(os是Operating
Systen的简称),就像平时在电脑上用的Window XP、Window 7、都是操作系统。*
那什么是操作系统呢?操作系统其实是一种软件,是直接运行在硬件(电脑,手机等)上得最基本的系统软件,任何其他软件都必须在操作系统的支持下...
分类:
移动开发 时间:
2014-05-09 18:23:57
阅读次数:
441
Eclipse
默认把这些受访问限制的API设成了ERROR。只要把Windows-Preferences-Java-Complicer-
Errors/Warnings里面的Deprecated and restricted API中的Forbidden references(access
rul...
分类:
数据库 时间:
2014-05-05 10:32:49
阅读次数:
435
VS2010的编译器遇到大级别的数值加减运算会出现错误,实际工程中一定要注意。...
分类:
其他好文 时间:
2014-05-04 18:24:05
阅读次数:
333
使用JavaScript获取URL上的参数值
方法一:
function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
var r = window.location.search.substr(1).match(reg);...
分类:
Web程序 时间:
2014-05-04 17:47:44
阅读次数:
265
中文版显示:Firefox 已经在运行,但是没有响应。如要打开新窗口,您必须先关闭该 Firefox 进程,或者重新启动您的系统。
英文版显示:Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or ...
分类:
系统相关 时间:
2014-05-04 17:44:21
阅读次数:
647