摘要: 1.题目描述 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). 判断输入的树杈是否是镜像结构 2.题目分析 判断给出的树杈每一级对应的左节点与右节点是否相同 3 阅读全文
posted @ 2018-02-07 22:27 vlice 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurall 阅读全文
posted @ 2018-02-07 22:12 vlice 阅读(103) 评论(0) 推荐(0) 编辑