Domanda di colloquio di Google

Given a tree and leaf node, write the code to make the leaf node as root of tree.

Risposta di colloquio

Anonimo

1 ago 2013

Just reverse all links on the path from root to that leaf node

2