3 ms·
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
by diminish 11y ago
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.
- logicchains 11y agoI like the solution a friend suggested: flip the interviewer upside-down.
- vishnuks 11y agoI would go for flipping the White Board.
- SamReidHughes 11y agoI don't think anybody was told "invert a binary tree" in the interview room.
- adnanh 11y agoMatter of fact: https://twitter.com/mxcl/status/608682016205344768 https://twitter.com/mxcl/status/608682016205344768
- SamReidHughes 11y agoAnd... nowhere there is there any reason for you to think the problem was posed as, "Could you invert a binary tree for me, please."