
2叉树
ACM__dongsheng
在校大学生
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
2叉树
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric:1 / \ 2 2 / \ / \ 3 4 4 3 But the following is not:转载 2016-03-13 11:51:40 · 486 阅读 · 0 评论 -
2叉树的非递归实现
装载于:http://blog.youkuaiyun.com/qq_20581563/article/details/51095639 //深度优先算法: void depthFirstSearch(Tree* root){ stack<Tree *> nodeStack; //使用C++的STL标准模板库 nodeStack.push(root);转载 2016-04-09 10:42:37 · 362 阅读 · 0 评论