import java.util.Iterator;
import java.util.Scanner;
public class Stack implements Iterable {
private Node first;// 栈顶
private int N;// 元素数量
// 定义结点的嵌套类
private class Node{
Item item;
Node nex...
分类:
其他好文 时间:
2014-05-11 13:20:22
阅读次数:
257
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 only n...
分类:
其他好文 时间:
2014-05-11 06:46:32
阅读次数:
366
[Node.js]在windows下不得不防的小错误...
题目
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,...
分类:
其他好文 时间:
2014-05-11 03:25:24
阅读次数:
298
#include#includetypedef struct node { int data;
struct node *lchild,*rchild;};node * create()//先序建立二叉树,根左右{ int x=0; node *t;
printf(" input data:"); ...
分类:
其他好文 时间:
2014-05-11 01:19:08
阅读次数:
311
在下例中,演示了链表的各种操作
#include
using namespace std;
typedef struct Node
{
int data; //数据域
struct Node * next; //指针域
}NODE, *PNODE; //NODE相当于struct Node, PNODE相当于struct Node *
PNODE CreateList()...
分类:
其他好文 时间:
2014-05-10 04:29:49
阅读次数:
263
AIX5.3下Oracle10gRAC启动故障--CRS启动失败系统环境:操作系统:AIX5300-09集群软件:CRS10.2.0.1数据库:Oracle10.2.0.1系统架构图故障现象:系统重启后,在节点上CRS启动失败或CRS服务启动成功,CRSResource无法ONLINE。[root@aix213racg]cat/etc/hosts127.0.0.1loopbackloc..
分类:
数据库 时间:
2014-05-10 03:57:53
阅读次数:
1163
AIX5.3InstallOracle10gRAC错误集锦--9iRACPresent系统环境:操作系统:AIX5300-08集群软件:CRS10.2.0.1数据库:Oracle10.2.0.1系统架构图故障现象:解决方法:[root@aix215tmp]#cat/etc/oratab#ThisfileisusedbyORACLEutilities.Itiscreatedbyroot.sh#andupdatedbytheDatabas..
分类:
数据库 时间:
2014-05-09 21:46:15
阅读次数:
596
安装pomelo时发现:错误解释:node-gyp和node的版本不一致,有可能是python版本太低,默认是2.6.6最后更改node版本和python版本node版本是10.2.6python版本是2.7.3再次重新安装无错误
分类:
其他好文 时间:
2014-05-09 21:32:43
阅读次数:
451
一、安装pomelo安装前准备:根据需要安装相应版本的Python和node[root@AY14041810545836988bZopt]#python--versionPython2.6.6一、下载Python2.7.3,此版本是适合node-gpy的#wgethttp://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz22.#tar-jxvfPython-2.7.3.tar.bz23.cdP..
分类:
其他好文 时间:
2014-05-09 21:27:46
阅读次数:
493