摘要:
/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } };*/ /* struct ListNode { int v... 阅读全文
摘要:
class Solution { public: vector> levelOrder(TreeNode* root) { vector> res; if (root == NULL) { return res; } queue> q; q.push(mak... 阅读全文