Problem Description
A binary tree is a finite set of vertices that is either empty or consists of a root r and two disjoint binary trees called the left and right subtrees. There are three most impor...
分类:
其他好文 时间:
2014-10-09 16:32:58
阅读次数:
176
一、实验说明: 操作系统:rhel 5.4 x86 数据库:Oracle11g R2二、操作步骤: 2.1、首先创建一个表t_btree,并创建B-Tree索引,索引键是object_name:SQL> create table t_btree as select * from dba_obje.....
分类:
数据库 时间:
2014-10-09 15:48:24
阅读次数:
360
Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. 1.....
分类:
编程语言 时间:
2014-10-09 14:37:53
阅读次数:
215
以下是我习惯的vim配置,做个记录~_~" 文件编码set fileencoding=utf-8set encoding=utf-8set termencoding=utf-8" 开启语法高亮syntax enable" 防止在文件末尾追加换行符set noendoflineset binary"....
分类:
其他好文 时间:
2014-10-09 14:00:03
阅读次数:
161
POJ 1330 DescriptionA rooted tree is a well-known data structure in computer science and engineering. An example is show...
分类:
其他好文 时间:
2014-10-09 13:40:33
阅读次数:
300
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the total number...
分类:
其他好文 时间:
2014-10-09 13:16:43
阅读次数:
179
#include #include #include void binary_num(int, int);int main( int argc, char* argv[] ) { int a = 30; binary_num(a, sizeof(a) * 8); print...
分类:
其他好文 时间:
2014-10-09 01:27:27
阅读次数:
204
Custom ViewErrorsE1 在使用自定义CustomView时,出现以下runtime error:Android.View.InflateException: Binary XML File Line #LineNumberSolution: 自定义的View 子类(例如,类名为: F...
分类:
移动开发 时间:
2014-10-09 01:22:27
阅读次数:
248
对于二叉树的创建我是利用先序遍历的序列进行创建能够对于树节点的内容我定义为char型变量 '0'为空,即此处的节点不存在头文件 Tree.h//链式二叉树的头文件#pragma once#include#includeusing namespace std;class BinaryTreeNode{...
分类:
其他好文 时间:
2014-10-09 01:22:27
阅读次数:
360
【代码】
#include
#include
using namespace std;
typedef struct Node{
char key;
struct Node *lchild, *rchild;
}*Tree, TNode;
void PreOrder(Tree T) //先序遍历
{
if (T == NULL)
return;
TNode *curr = T...
分类:
其他好文 时间:
2014-10-08 17:35:05
阅读次数:
199