下面是统计叶子结点数的递归算法,对空白处填空()int CountLeafNode(BinTree bt) //统计叶子结点数{ if (bt==NULL) return (); else if((bt->leftchild==NULL)&&(bt->rightchild==NULL)) return ( ); else return(CountLeafNode(bt->leftchild)+CountLeafNode(bt->rightchild)); A: 1,0 B: 1,1 C: 0,1 D: 0,0
下面是统计叶子结点数的递归算法,对空白处填空()int CountLeafNode(BinTree bt) //统计叶子结点数{ if (bt==NULL) return (); else if((bt->leftchild==NULL)&&(bt->rightchild==NULL)) return ( ); else return(CountLeafNode(bt->leftchild)+CountLeafNode(bt->rightchild)); A: 1,0 B: 1,1 C: 0,1 D: 0,0
1