No reports yet. Sign in to say where you were asked it.
Nodes of a tree carry costs. Given a set of nodes, find the common ancestor of all of them that has the lowest cost.