不会建树怎么办???
查看原帖
不会建树怎么办???
1409696
LXN1q2w3e楼主2024/8/5 16:45

如题目 写到一半发现不会建树 有其他方法也行

#include<bits/stdc++.h>
using namespace std;

void postorder(TreeNode *root)
{
	if(root!=NULL)
	{
		postorder(root->l);
		postorder(root->r);
		cout<<root->val;
	}
}

int main()
{
	int N;
	string m;
	cin>>N>>m;
	int n=strlen(m);
	return 0;
}
2024/8/5 16:45
加载中...