数据结构and
loveAC233
这个作者很懒,什么都没留下…
展开
-
根据先序和中序序列建立二叉树
#include <iostream> #include <stack> #include <queue> using namespace std; class Treenode{ public: char data; Treenode * lchild; Treenode * rchild; }; typedef struct Tr...原创 2019-04-15 23:46:42 · 477 阅读 · 0 评论 -
浙大数据结构--层次遍历输出树的叶子节点
Given a tree, you are supposed to list all the leaves in the order of top down, and left to right. Input Specification: Each input file contains one test case. For each case, the first line gives a ...原创 2019-04-03 18:30:56 · 532 阅读 · 0 评论