Re:Invert a binary tree on LeetCode
by cousin_it on Saturday June 13, 2015 @07:52AM
(#9710741)
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.)
[ Parent
| on HN ]
There are no comments on this comment yet.