题目:Given a binary tree, determine if it is a valid
binary search tree (BST).Assume a BST is defined as follows:The left subtree of
a node contains onl...
分类:
其他好文 时间:
2014-05-23 12:20:50
阅读次数:
407
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 le...
分类:
其他好文 时间:
2014-05-23 11:54:10
阅读次数:
317
1.安装npm2.安装CLI ( npm install -g grunt-cli)3.安装grunt
(npm install grunt --save-dev)4.添加gruntfile.jsmodule.exports = function (grunt)
{ grunt.initConfi....
分类:
其他好文 时间:
2014-05-23 11:22:46
阅读次数:
281
作为一个开发者,最关心的不外乎提高自己的软件开发水平。那要从何做起呢?积累技术知识(比如Node或者No-SQL)?死磕那些经典的算法问题(比如气泡排序或者网址缩短)?或者是打牢基础?作为一个程序员你的价值不是由你知道什么来衡量的,而是由你能做出什么来衡量的。两者看起来相似,但有着天壤之别。你的价值...
分类:
其他好文 时间:
2014-05-23 10:40:26
阅读次数:
241
#includeusing namespace std;class node{public:
node():value(0),next(NULL){} ~node(){} int value; node* next;};///be careful
this ;node* cr...
分类:
其他好文 时间:
2014-05-23 10:31:24
阅读次数:
240
#includeusing namespace std;class node{public:
node():value(0),next(NULL){} ~node(){} int value; node* next;};///be careful
this ;node* cr...
分类:
其他好文 时间:
2014-05-23 10:28:09
阅读次数:
250
sudo apt-get install php-pearsudo apt-get install
php5-devsudo pecl install xdebug下载安装编译完后,在php.ini
中加入extension=xdebug.so[zend]zend_extension="/usr/l...
分类:
其他好文 时间:
2014-05-23 10:07:25
阅读次数:
209
#includeusing namespace std;class node{public:
node():value(0),next(NULL){} ~node(){} int value; node* next;};///be careful
this ;node* cr...
分类:
其他好文 时间:
2014-05-23 10:06:09
阅读次数:
247
/* 先定义一个Node类用来存储节点的值域和指针域 * 即当前节点中的值和后面节点的方法 *
在C中就是相当与定义一个结构体类型一个数据域和指针域的方法 */class LNode{//这个写法已经非常固定了
设置两个属性分别用set函数和get函数来得到这两个属性 private int da....
分类:
编程语言 时间:
2014-05-20 11:14:55
阅读次数:
316
Cash MachineTime Limit:1000MSMemory
Limit:10000KTotal Submissions:26172Accepted:9238DescriptionA Bank plans to
install a machine for cash withdrawal. ...
分类:
其他好文 时间:
2014-05-20 10:55:48
阅读次数:
270