码迷,mamicode.com
首页 >  
搜索关键字:direct path write temp    ( 55479个结果
Depth-first Search(DFS)
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
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
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
游标基础用法
CreatePROCEDUREP_InsertSubject@SubjectIdintASDECLARErsCURSORLOCALSCROLLFORselectstudentidfromstudentwhereStudentGradu=1OPENrsFETCHNEXTFROMrsINTO@tempStudentIDWHILE@@FETCH_STATUS=0BEGINInsertSelSubjectvalues(@SubjectId,@tempStudentID)FETCHNEXTFROMrsINTO@temp..
分类:其他好文   时间:2014-06-10 21:01:39    阅读次数:203
python2.7.5 +eric4.4.2+PyQt4-4.10.3-gpl-Py2.7-Qt4.8.5-x32.exe
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
[leetcode]Longest Common Prefix @ Python
原题地址: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
DMV to track the temp file usage for SQLServer
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
Leetcode OJ: Binary Tree Maximum Path Sum
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
[CC150] 八皇后问题
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!