求取二叉树的层数
二叉树 求取
2023-09-14 09:07:08 时间
//先求出层数
int dfs1(int count,int sum,int step)
{
if(sum>=count)
{
cout<<"step="<<step<<endl;
return</