leetcode - Binary Tree Preorder Traversal && Binary Tree Inorder Traversal && Binary Tree Postorder Traversal
摘要:
简单来说,就是二叉树的前序、中序、后序遍历,包括了递归和非递归的方法前序遍历(注释中的为递归版本): 1 #include 2 #include 3 #include 4 #include 5 6 using namespace std; 7 8 struct TreeNode 9 {1... 阅读全文
posted @ 2014-06-16 22:05 laihaiteng 阅读(158) 评论(0) 推荐(0)
浙公网安备 33010602011771号