码迷,mamicode.com
首页 >  
搜索关键字:minimum path sum    ( 52602个结果
Leetcode: Letter Combinations of a Phone Number
像这种DFS的题目,常见的写法无外乎两种,使用recursion, 或者用Stack。本文采用了stack的方式。做完后积累的经验有:像这种在一个ArrayList里面罗列可能的path的题目,recursion的参数一般包括:包含最终结果的集合(ArrayList),input(String),递...
分类:其他好文   时间:2014-06-13 08:34:10    阅读次数:220
CAShapeLayer的使用[2]
CAShapeLayer的使用[2]CAShapeLayer支持的动画类型有如下这些.------------------------------------------------------------------------------/* The path defining the shap...
分类:其他好文   时间:2014-06-13 08:13:54    阅读次数:378
eclipse 导入项目js报错问题
eclipse 导入项目js报错问题eclipse 导入项目后会出现项目中的js文件报错(红叉),如下图所示,有时候报错的文件很多,需要集中处理。解决办法:右键项目名称》Properties》JavaScript》Include Path,在右侧选择“Source”选项卡,然后选择项目中的“Excl...
分类:Web程序   时间:2014-06-12 23:36:38    阅读次数:397
Linux下常用SVN命令
1、将文件checkout到本地目录svn checkout path(path是服务器上的目录)例如:svn checkout svn://192.168.1.1/pro/domain --username qinxiaohui简写:svn co2、往版本库中添加新的文件svn add file例...
分类:系统相关   时间:2014-06-12 21:41:45    阅读次数:448
[LeetCode] Maximum Depth of Binary Tree
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 farthest le...
分类:其他好文   时间:2014-06-12 18:32:00    阅读次数:222
Oracle 11g安装报错Environment variable: "PATH"
Environment variable: "PATH" - This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.预期值:1023实...
分类:数据库   时间:2014-06-12 17:25:20    阅读次数:633
windows7 32位安装easy_intall
前提条件安装完python(我安装的是2.7版本)安装完python后,把目录加入到环境变量setPATH=%PATH%;C:\Python27https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py打开这个页面后复制全部内容到本地目录,保存为easy_instll.py文件进行easy_install模块的安装安装..
分类:Windows程序   时间:2014-06-10 23:54:37    阅读次数:436
Add Binary
题目 Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". 方法 从后往前,每个字符进行判断。 public String addBinary(String a, String...
分类:其他好文   时间:2014-06-10 17:50:48    阅读次数:241
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!