/**pRoot接收要检索的树的根节点,pNode是要确认深度的结点 path存储从根结点到pNode的所有节点,包括了pNode和根节点*/void findPath(BinaryTreeNode *pRoot, BinaryTreeNode *pNode, vector &path){ if (...
分类:
其他好文 时间:
2014-08-04 01:54:46
阅读次数:
230
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:
其他好文 时间:
2014-08-03 22:59:56
阅读次数:
259
Path 路径,是java编译时需要调用的程序(如java,javac等)所在的地方;CLASSPATH的作用是指定查找类的路径:当使用java命令执行一个类(类中的main方法)时,会从classpath中进行查找当前运行class所依赖的其它class文件。,即CLASSPATH ->到哪里找需...
分类:
编程语言 时间:
2014-08-03 22:55:46
阅读次数:
248
var http = require('http'), fs = require('fs'), url = require('url'), path = require('path');http.createServer(function(req, res) { var pathurl = u...
分类:
Web程序 时间:
2014-08-03 20:29:25
阅读次数:
643
首先,在manifest.xml中添加user permission:代码中, String path = "http://192.168.1.22:8088/4"; URL url = new URL(path); URLConnection cn = url.openConnection().....
分类:
移动开发 时间:
2014-08-03 17:41:35
阅读次数:
234
string fileNameNo = Path.GetFileName(FileUploadImg.PostedFile.FileName); //获取文件名和扩展名string DirectoryName = Path.GetDirectoryName(FileUploadImg.PostedF...
分类:
Web程序 时间:
2014-08-03 12:29:45
阅读次数:
288
研究生时候一直在物联网项目,毕业后就一直没有再做这方面了,知道最近,又开始做物联网项目了,3年没做,出了很多新的技术,新的标准,让我有点赶不上,以前学的也有点忘了,不过花点时间看看应该很快可以捡起来吧。做这种项目的时候,我总是喜欢去研究透技术细节,比如route request和route repl...
分类:
其他好文 时间:
2014-08-03 10:10:34
阅读次数:
257
An intuitive 2D DP: dp[i][j] = min(grid[i-1][j-1] + dp[i-1][j], grid[i-1][j-1] + dp[i][j+1])class Solution {public: int minPathSum(vector > &grid) ...
分类:
其他好文 时间:
2014-08-03 07:50:54
阅读次数:
254
题目:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the....
分类:
编程语言 时间:
2014-08-03 04:40:04
阅读次数:
351
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.
/**
* Definition for binary tree
...
分类:
其他好文 时间:
2014-08-02 23:32:04
阅读次数:
232