I am new to learning the Binary tree concept. I'm having a problem with the following:
int lDepth = maxDepth(node->left);
int rDepth = maxDepth(node->right);
In this piece of code, what is the
"maxDepth(node->left); "
What is being stored in the 'LDepth' variable, and the same with the next line, after each recursive call - what is being stored in the 'lDepth' variable?
I would like as specific an answer as possible.