Posts List

一周LeetCode习题精选——树

LeetCode 226 链接:Invert Binary Tree 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. 难倒大神的反转二叉树问题,其实这道题并不难,用递归和遍历都可解决。