摘要:
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ #include<queue> struct Node{ int num; TreeNode * v; Node(int x =1,TreeNode * root=NULL):num(x),v(root){ } };... 阅读全文