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 · 461 阅读 · 0 评论 -
2叉树的非递归实现
装载于:http://blog.csdn.net/qq_20581563/article/details/51095639 //深度优先算法: void depthFirstSearch(Tree* root){ stack<Tree *> nodeStack; //使用C++的STL标准模板库 nodeStack.push(root);转载 2016-04-09 10:42:37 · 344 阅读 · 0 评论