摘要:
题目描述输入完全二叉树的层次遍历序列,输出该完全二叉树的中序遍历序列。例如下面二叉树的层次遍历序列为“ABCDE",中序遍历为"DBEAC"。 A / \ B C / \ DE遍历数采用递归写法,无需多说;而且前,中,后,皆为一法;重要的是看怎么建立一个二叉树,且听分解;//输入层次遍历输出中序#... 阅读全文
摘要:
表达式的计算(正确)1.表达式的计算主要考察栈的一些运用先加减,后乘除,有括号先算,无需多讲;------------------------------------------------------------------------------------------------------遇... 阅读全文
摘要:
1.表达式的计算主要考察栈的一些运用先加减,后乘除,有括号先算,无需多讲; ------------------------------------------------------------------------------------------------------遇到数字入(收集数据... 阅读全文
摘要:
#include #include //#define _OJ_#define maxsize 100typedef struct stack1{ char *elem; int top; int base;} stack1, *stack;stackcreat_stack(void){ stack... 阅读全文
摘要:
//二叉查找树的实现#include #include //#define _OJ_typedef struct tree1{ int data; struct tree1 *lchild; struct tree1 *rchild;} tree1, *tree;treefind(... 阅读全文
摘要:
//二叉查找树的实现#include #include //#define _OJ_typedef struct tree1{ int data; struct tree1 *lchild; struct tree1 *rchild;} tree1, *tree;treefind(... 阅读全文
摘要:
7:计算机运行命令全集 winver---------检查Windows版本 wmimgmt.msc----打开windows管理体系结构 wupdmgr--------windows更新程序 winver---------检查Windows版本 wmimgmt.msc----打开windows管理... 阅读全文
摘要:
Sublime text 2/3 中 Package Control 的安装与使用方法2014/05/23前端工具, 工具, 教程, 软件4条评论 Package Control 插件是一个方便Sublime text 管理插件的插件,但因为Sublime Text 3 更新了Python 的函数,... 阅读全文
摘要:
//二叉树的层次遍历和其深度#include #include //define _OJ_#define maxsize 100typedef struct tree1{ char data; struct tree1 *lchild; struct tree1 *rchild;} tree1, *... 阅读全文
摘要:
对于后序遍历有点难度,,,主要是在判断的时候要求访问的节点是叶子节点或者是左右节点都已经访问过了,还有一个值得注意的点就是此处用了指针的指针,,,在栈中每一个都存储是一个地址 so我要定义一个可以存储地址的数组#include #include //define _OJ_#define maxsi... 阅读全文