摘要: 题目:Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical... 阅读全文
posted @ 2016-01-23 22:27 zhangbaochong 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 题目:Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1反转二叉树,左右儿子值交换代码:/*** Definition for ... 阅读全文
posted @ 2016-01-23 22:18 zhangbaochong 阅读(156) 评论(0) 推荐(0) 编辑