第41天。
今天的题目是Invert Binary Tree:
Invert a binary tree.
to
Google: 90% of our engineers use the software you wrote (Homebrew), but you can’t invert a binary tree on a whiteboard so fuck off.
emmmm,挺出名的一道题目。
其实挺简单:
然后是迭代的方法:
第41天。
今天的题目是Invert Binary Tree:
Invert a binary tree.
to
Google: 90% of our engineers use the software you wrote (Homebrew), but you can’t invert a binary tree on a whiteboard so fuck off.
emmmm,挺出名的一道题目。
其实挺简单:
然后是迭代的方法: