原文:[LeetCode] 144. Binary Tree Preorder Traversal 二叉树的先序遍历

Given a binary tree, return thepreordertraversal of its nodes values. Example: Follow up:Recursive solution is trivial, could you do it iteratively 一般我们提到树的遍历,最常见的有先序遍历,中序遍历,后序遍历和层序遍历,它们用递归实现起来都非常的简单 ...

2014-12-05 16:29 3 11564 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM