4 ms·
I find it funny how inverting a binary tree is used as an example of a bad leetcode problem. This problem seems more like a fizzbuzz test, anyone who knows recu
by durovo 5y ago
I find it funny how inverting a binary tree is used as an example of a bad leetcode problem. This problem seems more like a fizzbuzz test, anyone who knows recursion should be able to solve it on their own.
- mips_avatar 5y agoThere’s a difference between being able to solve the problem given some thought, and being able to answer and program 2-3 of these problems in 45 minutes. The latter is what Facebook expects.
- jacobolus 5y agoNo idea about 'bad', but https://duckduckgo.com/?q=invert+binary+tree https://duckduckgo.com/?q=invert+binary+tree turns up nothing but interview prep sites.