3 ms·
I was gonna say, who calls reversing a tree's ordering inverting? > Oddly enough, Google shows me interview questions where "inverting a binary tree" means som
by DannoHung 11y ago
I was gonna say, who calls reversing a tree's ordering inverting?
> Oddly enough, Google shows me interview questions where "inverting a binary tree" means something quite different — for example, flipping it upside down, and making the left leaf the root, the right leaf the left leaf and the root the right leaf.
Whaaaaa? I can't find this, but it seems like such a weird operation. Got a link?
- morpher 11y ago>I was gonna say, who calls reversing a tree's ordering inverting? The guy writing the tweet (not necessarily the interviewer).
- attilaolah 11y ago> Whaaaaa? I can't find this, but it seems like such a weird operation. Got a link? https://wwwx.cs.unc.edu/~duozhao/entry/2014/12/binary-tree-upside-down/ https://wwwx.cs.unc.edu/~duozhao/entry/2014/12/binary-tree-u...