Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

At first I thought that he was given a slightly harder problem: given a binary tree and a particular leaf node of that tree, return another tree that's graph-isomorphic to the original, but has that node as the root. (You can visualize that as picking up the tree by a leaf node and shaking it, then reinterpreting the result as another tree.)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: