![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
沦落而成美LSH
这个作者很懒,什么都没留下…
展开
-
已知前序遍历和中序遍历重建二叉树
数据结构的作业题,题目用了一种奇怪的表述,但他的本质就是根据前序遍历和中序遍历重建二叉树再进行后序遍历。博主百思不得其解,百了一度才明白做法,现记之。Tree reBuildTree (ElementType preOrder[],ElementType inOrder[],int n) { if(n<=0) return NULL; //如果没有元素,返回空指针; Tree roo原创 2016-10-09 22:41:54 · 1858 阅读 · 0 评论 -
Two stack in one array
。。。原创 2016-10-01 16:49:07 · 1523 阅读 · 1 评论 -
二分法寻找Ai=i
给定一串整数序列 A1 < A2 < A3..< An 找到Ai=i;原创 2016-10-02 19:29:41 · 424 阅读 · 0 评论