真是没办法,回答个问题,还失效.换个马甲又说与人重复
1.二叉树的后序序列:CBFEIJHGDA,二叉树如下:
A
/
B D
/ /
C E G
/
F H
/
I J
2.
int FindDouble(BTreeNode*BT)
{
if(!BT) return 0;
if(BT->left&&BT->right) return 1+FindDouble(BT->left)+FindDouble(BT->right);
if(BT->left) return FindDouble(BT->left);
if(BT->right) return FindDouble(BT->right);
}