摘要: /* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } };*/ /* struct ListNode { int v... 阅读全文
posted @ 2017-07-03 11:00 czcColud 阅读(1330) 评论(0) 推荐(0) 编辑
摘要: class Solution { public: vector> levelOrder(TreeNode* root) { vector> res; if (root == NULL) { return res; } queue> q; q.push(mak... 阅读全文
posted @ 2017-07-03 10:17 czcColud 阅读(210) 评论(0) 推荐(0) 编辑