Cheapest common ancestor in a tree

0
Remix

Nodes of a tree carry costs. Given a set of nodes, find the common ancestor of all of them that has the lowest cost.

GoogleCodingLast asked Feb 2026
No answer yet. Write the first one; the best answer gets endorsed.