Answered step by step
Verified Expert Solution
Question
1 Approved Answer
What does this function do ? int FunNodes ( Node node ) 1 if ( node = = null ) return 0 ; else if
What does this function do
int FunNodes Node node
if node null
return ;
else if node left null && node.right null II
node left null && node.right null
return FunNodes node: node.left
FunNodes node: node.right ;
else
return FunNodes node: node. left
FunNodes node: node.right ;
A It counts the number of internal nodes in the tree.
B It counts the number of internal nodes with two children in the tree.
C It counts the number of internal nodes with one child in the tree.
D It counts the number of leaf nodes in the tree.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started