class Solution {public: int dfs(TreeNode* root,int u){ if(!root)return 0; u=u*10+root->val; if(!root->left&&!roo
class Solution {public: void handle(Node* &last,Node* &p,Node* &nextStart){ if(last){ last->next=p; }