标签:style blog color os io ar div amp
1 class Solution { 2 public: 3 vector<int> postorderTraversal(TreeNode *root) { 4 if(root->left == NULL && root->right == NULL) 5 { 6 v1.push_back(root->val); 7 return v1; 8 } 9 if(root->left != NULL) 10 postorderTraversal(root->left); 11 if(root->right != NULL) 12 postorderTraversal(root->right); 13 v1.push_back(root->val); 14 return v1; 15 } 16 };
Binary Tree Postorder Traversal,布布扣,bubuko.com
Binary Tree Postorder Traversal
标签:style blog color os io ar div amp
原文地址:http://www.cnblogs.com/ZhangYushuang/p/3909284.html