根据二叉树建立字符串

题目 题目来源: LeetCode web 实现 //左子树为空,右子树存在 //左子树存在 //右子树为空 void _Tree2str(struct TreeNode* root, char* str){ if(!root){ return; } char* valuestr[10]; sprintf(valuestr, "%d", root-
相关文章
相关标签/搜索