#include #include #include #include using namespace std;vector* > paths;class Node {public: vector child; int weight; Node(int w = 0) : weigh...
分类:
其他好文 时间:
2014-11-08 13:25:50
阅读次数:
110
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree and sum ...
分类:
其他好文 时间:
2014-11-08 13:24:56
阅读次数:
171
1,golang下载合适版本,我的是linux amd642,解压即可3,把目录移到/usr/local/go; 不然报没路径的错哦,屌丝有点不明白,当做是golang连go路径也严格定义了,或许在哪里可以配置德。。4,环境变量不不可少GOROOT=/usr/local/goPATH=$PATH:$...
分类:
其他好文 时间:
2014-11-08 13:22:21
阅读次数:
333
http://mengyang.iteye.com/blog/575671第一次遇到一个这样的问题,"PKIX path building failed" 异常详解异常:http://www.cnblogs.com/aurawing/articles/1899217.html大概意思是,证书出问题了...
分类:
Web程序 时间:
2014-11-08 13:17:44
阅读次数:
326
在"系统属性——高级——环境变量——系统变量"中新建如下变量:变量名:JAVA_HOME变量值:C:\Program Files\Java\jdk1.7.0_03(即jdk安装的位置)变量名:Path(这个变量名已在系统变量中存在,现只需在这个值的前面添加以下变量值就可以了)变量值:C:\Progr...
分类:
其他好文 时间:
2014-11-08 11:52:03
阅读次数:
174
//练习:将一个字符串数组的元素顺序时行反转string[] names={"我","是","好人"};for(int i=0;i<names.Length/2;i++){ string temp=names[i]; names[i]=names[names.Length-1-i]; names[n...
分类:
编程语言 时间:
2014-11-08 11:50:20
阅读次数:
155
Number SequenceDescriptionA single positive integer i is given. Write a program to find the digit located in the position i in the sequence of number ...
分类:
其他好文 时间:
2014-11-08 10:25:14
阅读次数:
209
#include
#include
using namespace std;
//void insert_sort(vector &a)
//{
// int temp;
// size_t n = a.size();
// for ( int i= 1; i = 0 && a[j]>a[j + 1]; j--...
分类:
编程语言 时间:
2014-11-08 09:19:05
阅读次数:
192
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 fo...
分类:
其他好文 时间:
2014-11-08 09:15:14
阅读次数:
187
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-11-08 08:11:54
阅读次数:
244