摘要: /** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */class Solution {public: void preorder(TreeNode *t, int & max,int & sum) { if(t==NULL) { return ; ... 阅读全文
posted @ 2013-05-25 10:57 NinaGood 阅读(89) 评论(0) 推荐(0) 编辑