C++数据结构 二叉树代码问题

2025-02-24 05:20:51
推荐回答(1个)
回答1:

return count((st->left)+(st->right))+1;
这里问题
改为
return count(st->left)+count(st->right)+1;