码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
Java for LeetCode 087 Scramble String
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
Java for LeetCode 089 Gray Code
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
LeeCode 判断两个二叉树是否相等
题目: 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
win7 64位系统使用vs2010编译OSG3.2.1
首先我想说的是,osg是有二进制安装包的:http://openscenegraph.alphapixel.com/osg/downloads/free-openscenegraph-binary-downloads(也不叫二进制安装包,就是别人预先编译好的)。我认为,如果只是简单的用下osg,.....
分类:Windows程序   时间:2015-05-19 22:20:18    阅读次数:468
Java for LeetCode 085 Maximal Rectangle
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
[LeetCode-JAVA] Gray Code
题目: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
106 Construct Binary Tree from Inorder and Postorder Traversal
public class Solution { public TreeNode buildTree(int[] inorder, int[] postorder) { if (inorder == null || postorder == null || inorder.leng...
分类:其他好文   时间:2015-05-19 10:11:11    阅读次数:113
105 Construct Binary Tree From Preorder and Inorder Traversal
public class Solution { public TreeNode buildTree(int[] preorder, int[] inorder) { if (preorder == null || inorder == null || preorder.lengt...
分类:其他好文   时间:2015-05-19 10:09:22    阅读次数:136
LeetCode: Binary Tree Maximum Path Sum
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
Binary Tree Postorder Traversal
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!