摘要: 题目: Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example:Given binary tre 阅读全文
posted @ 2016-06-17 10:59 panini 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric: 1 / \ 2 阅读全文
posted @ 2016-06-17 10:39 panini 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 题目: 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 identic 阅读全文
posted @ 2016-06-17 09:49 panini 阅读(105) 评论(0) 推荐(0) 编辑