Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. ...
分类:
其他好文 时间:
2016-01-10 15:36:20
阅读次数:
159
题目:Given 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 tree and s...
分类:
其他好文 时间:
2016-01-10 14:13:53
阅读次数:
144
Java环境变量1、选择【新建系统变量】--弹出“新建系统变量”对话框,在“变量名”文本框输入“JAVA_HOME”,在“变量值”文本框输入JDK的安装路径(也就是步骤5的文件夹路径),单击“确定”按钮;2、在“系统变量”选项区域中查看PATH变量,如果不存在,则新建变量 PATH,否则选中该变量,...
分类:
编程语言 时间:
2016-01-10 10:28:44
阅读次数:
190
1.右键选择 计算机→属性→高级系统设置→高级→环境变量2.系统变量→新建变量名:JAVA_HOME变量值:(变量值填写你的jdk的安装目录,例如本人是 E:Javajdk1.7.0)3.在系统变量中找到 Path 变量,选择编辑在变量值最后输入 %JAVA_HOME%in;%JAVA_HOME%...
分类:
其他好文 时间:
2016-01-10 00:29:10
阅读次数:
252
@GET @Path("/queryParam") public String getUser(@QueryParam("name") String name) { System.out.println("NameI: " + name); return ...
分类:
其他好文 时间:
2016-01-09 23:02:46
阅读次数:
333
创建lyyp项目,项目中添加mysql的jar包。mysql-connector-java-5.1.7-bin.jar 此包放入项目WebContent-WEB-INF-lib中,项目右键选择Build Path-Java Build Path - Libraries,Add JARs...找到项目...
分类:
其他好文 时间:
2016-01-09 20:16:02
阅读次数:
270
@Path("resource_path"):The @Path annotation defines the path to the base URL or resource_path. The base URL is based on the application's name, the se...
分类:
其他好文 时间:
2016-01-09 20:10:41
阅读次数:
106
1.mysql官网:http://dev.mysql.com/downloads/下载2.在windows系统环境变量path,加入如下内容D:\mysql\mysql-5.7.5-m15-winx64\bin;(注意加分号)3.在D:\ProgramFiles(x86)\mysql-5.7.9-winx64目录下创建一个my.ini目录文件4.my.ini内容如下:[client]default-character-set=u..
分类:
数据库 时间:
2016-01-09 18:48:42
阅读次数:
301
get path of basehttp.py$ python>>> import site>>> site.getsitepackages()['/usr/lib64/python2.7/site-packages', '/usr/lib/python2.7/site-packages', '/u...
分类:
其他好文 时间:
2016-01-09 17:05:57
阅读次数:
152
压缩以及解压缩: 压缩格式: gz,bz2,xz,zip,z 压缩算法:压缩算法不同,压缩比也会不同,压缩算法在此不做讨论 对文件的压缩以及解压缩 gzip: *.gz gzip /path/file_name :压缩完成后会删除原文件 -d : 解压缩 -# : 压缩比(1-9),默认为6 ...
分类:
系统相关 时间:
2016-01-09 13:51:49
阅读次数:
205