There are generally two methods to write DFS
algorithm, one is using recursion, another one is using stack. (reference from
Wiki Pedia)Pseudocode for ...
分类:
其他好文 时间:
2014-06-13 08:39:34
阅读次数:
218
像这种DFS的题目,常见的写法无外乎两种,使用recursion,
或者用Stack。本文采用了stack的方式。做完后积累的经验有:像这种在一个ArrayList里面罗列可能的path的题目,recursion的参数一般包括:包含最终结果的集合(ArrayList),input(String),递...
分类:
其他好文 时间:
2014-06-13 08:34:10
阅读次数:
220
CAShapeLayer的使用[2]CAShapeLayer支持的动画类型有如下这些.------------------------------------------------------------------------------/*
The path defining the shap...
分类:
其他好文 时间:
2014-06-13 08:13:54
阅读次数:
378
前提条件安装完python(我安装的是2.7版本)安装完python后,把目录加入到环境变量setPATH=%PATH%;C:\Python27https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py打开这个页面后复制全部内容到本地目录,保存为easy_instll.py文件进行easy_install模块的安装安装..
CreatePROCEDUREP_InsertSubject@SubjectIdintASDECLARErsCURSORLOCALSCROLLFORselectstudentidfromstudentwhereStudentGradu=1OPENrsFETCHNEXTFROMrsINTO@tempStudentIDWHILE@@FETCH_STATUS=0BEGINInsertSelSubjectvalues(@SubjectId,@tempStudentID)FETCHNEXTFROMrsINTO@temp..
分类:
其他好文 时间:
2014-06-10 21:01:39
阅读次数:
203
1.安装python
双击运行就可以了当安装好了Pyhon,记得要配置环境变量,把C:\Python27添加到PATH中2.安装pyqt默认安装就可以3.把eric4.4.2拷贝到C:\目录下,点击eric4.4.2中的install.py文件进行安装。4.Pythonw配置:您可以通过点击安装目录...
分类:
编程语言 时间:
2014-06-10 20:15:47
阅读次数:
268
原题地址:https://oj.leetcode.com/problems/longest-common-prefix/题意:Write
a function to find the longest common prefix string amongst an array of
strings.解...
分类:
编程语言 时间:
2014-06-10 16:31:52
阅读次数:
261
There are three DMVs you can use to track
tempdb
usage:sys.dm_db_task_space_usagesys.dm_db_session_space_usagesys.dm_db_file_space_usageThe
first two ...
分类:
数据库 时间:
2014-06-10 11:27:07
阅读次数:
307
Binary Tree Maximum Path SumGiven a binary
tree, find the maximum path sum.The path may start and end at any node in the
tree.For example:Given the be...
分类:
其他好文 时间:
2014-06-10 10:42:58
阅读次数:
203
Write an algorithm to print all ways of arranging
eight queens on an 8*8 chess board so that none of them share the same row,
column or diagonal.思路:本质...
分类:
其他好文 时间:
2014-06-10 10:36:29
阅读次数:
182