3 ms·
Unfortunately he will flunk the interview after failing to invert a binary tree..
by swat535 6y ago
Unfortunately he will flunk the interview after failing to invert a binary tree..
- systemvoltage 6y agoNot worth working there anyways.
- therealdrag0 6y agoI know it's tongue in cheek, but shouldn't you use a more difficult example? Inverting a binary tree is trivial. (Example solution: https://leetcode.com/problems/invert-binary-tree/discuss/1112421/Java-%3A-Easy-and-very-intuitive-approach-using-recursion-greater-beats-100 https://leetcode.com/problems/invert-binary-tree/discuss/111...)
- odobo 6y agoIt's a reference to the engineer that created homebrew but failed a google interview where they asked him that question: https://twitter.com/mxcl/status/608682016205344768?s=20 https://twitter.com/mxcl/status/608682016205344768?s=20