摘要: 226. Invert Binary Tree 题目链接:https://leetcode.com/problems/invert-binary-tree/#/description 题目大意:反转一棵二叉树 思路:递归反转左子树和右子树,然后再交换左子树和右子树的根节点即可。 算法复杂度分析:时间 阅读全文
posted @ 2017-04-01 13:41 小谷子的博客园 阅读(132) 评论(0) 推荐(0) 编辑