Question: Write function that return the Depth of given node in General tree this function take node as input , and return the depth of given
Write function that return the Depth of given node in General tree
this function take node as input , and return the depth of given node , like this :
int depth(GTNode
{
//write code here.
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
