摘要:
对称二叉树 如果对称,则除根节点以外每相邻两个节点都是对称的。 暴力遍历即可。 #include<iostream> #include<cstring> using namespace std; int main(){ string s; cin>>s; int len=s.length(); if 阅读全文
posted @ 2021-09-15 20:21
Rekord
阅读(382)
评论(0)
推荐(0)
摘要:
二叉树输出 在后序遍历的基础上加上一些操作,逆向求得所有节点的子节点数。 #include<iostream> #include<cstring> using namespace std; string pre,mid; int a[105]; int solve(int pt,int l,int 阅读全文
posted @ 2021-09-15 19:07
Rekord
阅读(699)
评论(0)
推荐(0)

浙公网安备 33010602011771号