Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root ...
分类:
其他好文 时间:
2014-07-31 23:19:10
阅读次数:
259
Path SumGiven a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the give...
分类:
其他好文 时间:
2014-07-31 23:18:10
阅读次数:
227
Path Sum IIGiven a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tr...
分类:
其他好文 时间:
2014-07-31 23:17:10
阅读次数:
175
1安装与配置jdk: 1.6或以上下载MAVEN3.x版本,解压后放在随便一目录,然后在系统环境变量配置MAVEN路径。运行cmd-->输入 mvn -version 会出现maven版本信息。此处有机会出错,如显示JAVA_HOME问题,请配置JAVA_HOME即jdk路径,然后在path中比ma...
分类:
其他好文 时间:
2014-07-31 23:14:40
阅读次数:
231
vi/home/oracle/.bashrcumask022ORACLE_BASE=/usr/lib/oracleORACLE_HOME=$ORACLE_BASE/11.2/client64PATH=$ORACLE_HOME/bin:$PATHLD_LIBRARY_PATH=$ORACLE_HOME/libTNS_ADMIN=/usr/lib/oracle/11.2/client/network/adminExportLD_LIBRARY_PATHORACLE_BASEORACLE_HOMEPATHTNS_A..
分类:
数据库 时间:
2014-07-31 21:21:48
阅读次数:
289
1.eclipse中安装jre ? window->preferences->java->Installed JREs 这里分别安装了jdk1.6.0_10和jre6,分别来试验 2.project右击->properties->Java Build Path->Libraries->Add Library... 这里选择的是jre6 Ja...
分类:
编程语言 时间:
2014-07-31 17:26:37
阅读次数:
256
//获取本地项目路径
String path=request.getSession().getServletContext().getRealPath("upload/img/product");
//二进制上传MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;//获取文件C...
分类:
编程语言 时间:
2014-07-31 17:07:47
阅读次数:
420
对象归档是ios持久化中的其中一种,也是很常用的一种。现在来看看swift是如何实现的。实现要点1),必须实现NSCoding的协议import UIKitlet path=(NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.Docu...
分类:
其他好文 时间:
2014-07-31 16:01:46
阅读次数:
146
例如: document.cookie = "JSESSIONID=17670318F94DA12B50D06762EAA9973F;domain="+domain+";path="+path; 说明1:如果域名路径下存在该cookiename,则重写,如果不存在则创建。 说明2:chrome和ie认为localhost...
分类:
其他好文 时间:
2014-07-31 13:48:56
阅读次数:
390
一、sqlite3?使用
1、import?sqlite3?确认系统中是否安装
2、进入当前项目目录,cmd后运行python,进入命令行模式
3、import?sqlite3,
???sqlite3.connect(‘{path\name.db}‘)?#大括号内表示自定义,真实情...
分类:
数据库 时间:
2014-07-31 13:44:20
阅读次数:
226