【内部排序法】一、交换排序法 1.冒泡排序法$arr[$j+1]) { $temp = $arr[$j]; $arr[$j] = $arr[$j+1]; $arr[$j+1] = $t...
分类:
Web程序 时间:
2014-10-06 01:36:49
阅读次数:
381
Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1 ...
分类:
其他好文 时间:
2014-10-05 23:13:59
阅读次数:
166
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 leaf node.
点击打开原题链接
这个题剑指offer里也有,简单的递归即可,代码很清晰:...
分类:
其他好文 时间:
2014-10-05 22:56:09
阅读次数:
185
Write a function to find the longest common prefix string amongst an array of strings.class Solution: # @return a string #最长公共前缀 def longestC...
分类:
编程语言 时间:
2014-10-05 20:35:58
阅读次数:
202
跟着达内视频,学习UC高级编程,完毕程序小练习。主要练习的函数为:int lstat(const char *path, struct stat *buf);size_t strftime(char *s, size_t max, const char *format, const struct t...
分类:
其他好文 时间:
2014-10-05 19:43:28
阅读次数:
221
./configure --prefix=/usr/local/php/ --with-config-file-path=/etc/php5/cli/ --with-config-file-scan-dir=/etc/php5/mods-available/ --with-apxs2=/usr/lo...
分类:
Web程序 时间:
2014-10-05 18:43:38
阅读次数:
202
Code Path:
https://github.com/bluesilence/Lisp/blob/master/clojure/projects/room-escape/src/room_escape/core.clj
E2E Process
Now it's time to put the stuff altogether.
The body of the core c...
分类:
Web程序 时间:
2014-10-05 18:36:28
阅读次数:
191
Code path:
https://github.com/bluesilence/Lisp/tree/master/clojure/projects/room-escape
As I have been a fan of room-escape games, there have always been a desire to make my own story of a roo...
分类:
Web程序 时间:
2014-10-05 17:44:38
阅读次数:
269
Code Path:
https://github.com/bluesilence/Lisp/blob/master/clojure/projects/room-escape/src/room_escape/script.clj
Extract Story to TXT
In order to move the story from .clj into .txt, I lever...
分类:
Web程序 时间:
2014-10-05 17:36:38
阅读次数:
214
在“System variables”新建一个Variable,如“java_home”,value里填入绝对路径。之后在“User variables for username”里的path变量里添加入刚才创建的变量,以分号隔开。