Q:

C Programming And Data Structure

How can we find the closest ancestor of the two different nodes of the binary tree?

A:

For each node on the path from the left node to the root, check whether that node is on the path from the right node to the root.

