Re:Invert a binary tree on LeetCode
by diminish on Saturday June 13, 2015 @06:40AM
(#9710578)
What's hard is to have necessary CS background to understand what "inverting a tree" as a term means. As a non-CS major, I don't know what they use it for as a "term" and it evokes several things I can do with a tree as an outsider. So interviewers can quickly eliminate me as a non-CS. How to invert a tree on a whiteboard? Use a mirror.
[ Parent
| on HN ]
Re:Invert a binary tree on LeetCode
by logicchains on Saturday June 13, 2015 @06:50AM
(#9710599)
I like the solution a friend suggested: flip the interviewer upside-down.
I would go for flipping the White Board.
Re:Invert a binary tree on LeetCode
by SamReidHughes on Saturday June 13, 2015 @07:02AM
(#9710639)
I don't think anybody was told "invert a binary tree" in the interview room.
Matter of fact: https://twitter.com/mxcl/status/608682016205344768
Re:Invert a binary tree on LeetCode
by SamReidHughes on Saturday June 13, 2015 @07:35AM
(#9710710)
And... nowhere there is there any reason for you to think the problem was posed as, "Could you invert a binary tree for me, please."