91. バイナリツリーの反転
シェアしよう
簡単 - accepted / - tried
バイナリツリーを反転させて、Googleのofferをもらえますか?
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.
— Max Howell (@mxcl) June 10, 2015
反転と言うのは、左右のchild nodeの位置を入れ替えることで、treeの中の全てのノードを反転させる必要がある、したのイメージのように。
