Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representatio...
分类:
编程语言 时间:
2015-05-20 01:57:32
阅读次数:
192
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total numb...
分类:
编程语言 时间:
2015-05-20 01:56:53
阅读次数:
188
题目:
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 and the nodes have the same value.
C代码...
分类:
其他好文 时间:
2015-05-19 22:47:09
阅读次数:
147
首先我想说的是,osg是有二进制安装包的:http://openscenegraph.alphapixel.com/osg/downloads/free-openscenegraph-binary-downloads(也不叫二进制安装包,就是别人预先编译好的)。我认为,如果只是简单的用下osg,.....
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.解题思路:求01矩阵中,全是1的子矩阵的最大面积。把矩阵按照每一行...
分类:
编程语言 时间:
2015-05-19 20:39:59
阅读次数:
280
题目:The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the total num...
分类:
编程语言 时间:
2015-05-19 12:08:38
阅读次数:
230
public class Solution { public TreeNode buildTree(int[] inorder, int[] postorder) { if (inorder == null || postorder == null || inorder.leng...
分类:
其他好文 时间:
2015-05-19 10:11:11
阅读次数:
113
public class Solution { public TreeNode buildTree(int[] preorder, int[] inorder) { if (preorder == null || inorder == null || preorder.lengt...
分类:
其他好文 时间:
2015-05-19 10:09:22
阅读次数:
136
Title: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 tree, ...
分类:
其他好文 时间:
2015-05-18 16:35:54
阅读次数:
108
https://leetcode.com/problems/binary-tree-postorder-traversal/Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given...
分类:
其他好文 时间:
2015-05-18 12:49:08
阅读次数:
98