未分类题

在一棵非空二叉树中,若度为0的结点的个数n,度为2的结点个数为m,则有n=________ (系统根据字符串匹配来判定答案,所以您的答案中请不要包含空格) For a binary tree with at least one node, if there are n nodes with degree 0 and m nodes with degree 2, then n = ________(This problem is judged by string matching, Please make sure your answer don’t contain any blanks.)

A.)

【参考答案】

在二叉树中,度为0的节点是叶子节点,度为2的节点是内部节点(有子节点的节点)。根据二叉树的性质,所有节点数(N)等于叶子......

(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
热门 试题

未分类题
未分类题