leetcode 114:二叉樹展開爲鏈表

二叉樹的題,使用遞歸的方式 TreeNode *last(TreeNode*root){ while(root->right!=NULL){ root=root->right; } return root; } TreeNode *fla(TreeNode *root){ if(root==NULL) return NUL
相關文章
相關標籤/搜索