原文:Symmetric Tree leetcode java

题目: Given a binary tree, check whether it is a mirror of itself ie, symmetric around its center . For example, this binary tree is symmetric: But the following is not: Note: Bonus points if you could ...

2014-07-31 00:05 0 2981 推荐指数:

查看详情

[LeetCode] Symmetric Tree

Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric ...

Fri Nov 16 04:54:00 CST 2012 0 3356
[leetcode]Symmetric Tree @ Python

原题地址:https://oj.leetcode.com/problems/symmetric-tree/ 题意:判断二叉树是否为对称的。 Given a binary tree, check whether it is a mirror of itself (ie, symmetric ...

Fri May 23 19:03:00 CST 2014 0 4264
leetcode: Symmetric Tree

判断一棵树是否对称,如果对称,中序遍历的结果一定也是对称的。 看了一下别人的代码,也可以在递归的过程中直接去判断。 ...

Sun Jul 28 01:58:00 CST 2013 2 2594
[LeetCode] Symmetric Tree 判断对称树

Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric ...

Sun Oct 26 18:49:00 CST 2014 17 12959
Binary Tree Maximum Path Sum leetcode java

题目: Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. For example: Given the below binary ...

Sat Aug 02 15:51:00 CST 2014 3 2060
Binary Tree Level Order Traversal leetcode java

题目: Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example: Given ...

Tue Aug 05 11:01:00 CST 2014 0 3205
Binary Tree Inorder Traversal leetcode java

题目: Given a binary tree, return the inorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, return [1,3,2]. Note ...

Wed Jul 30 17:24:00 CST 2014 0 2515
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM