Given some nodes of a tree that only know their parents, find their lowest common ancestor, insert a new node under it, and move the nodes beneath the new one.
Given some nodes of a tree that only know their parents, find their lowest common ancestor, insert a new node under it, and move the nodes beneath the new one.
The discussion opens with the full question.