码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
Construct Binary Tree from Inorder and Postorder Traversal
https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/Given inorder and postorder traversal of a tree, construct th...
分类:其他好文   时间:2015-04-26 15:00:15    阅读次数:116
LeetCode Same Tree
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. 题意:判断两棵树是否一样...
分类:其他好文   时间:2015-04-26 13:50:09    阅读次数:100
山东省第五届省赛回顾 Full Binary Tree
Full Binary Tree 题目链接:http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2882 Time Limit: 2000ms   Memory limit: 65536K  有疑问?点这里^_^ 题目描述 In computer science, a binary...
分类:其他好文   时间:2015-04-26 09:30:35    阅读次数:215
AVEVA RVM Binary Parse
昨天,Shing Liu要求我帮忙写一个对Aveva Rvm 二进制格式的解析程序。我粗看了下格式还是比较简单的,没有涉及到压缩、加密。下面给出简要分析过程,希望对有需要的朋友有所帮助。这是我第一次写blog,写的不到之处请谅解。 为了便于后面查看,我先在此放出Text与Binary的对照图: 1....
分类:其他好文   时间:2015-04-25 22:46:13    阅读次数:1393
Construct Binary Tree from Preorder and Inorder Traversal
https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/Given preorder and inorder traversal of a tree, construct the ...
分类:其他好文   时间:2015-04-25 22:33:00    阅读次数:223
LeetCode - Symmetric Tree
关于镜像树的相关操作,利用递归可以很简单的解决问题。 注意判断根节点是不是null/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNod...
分类:其他好文   时间:2015-04-25 22:28:50    阅读次数:180
LeetCode Recover Binary Search Tree
Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. Note: A solution using O(n) space is pretty straight forward. Could you devis...
分类:其他好文   时间:2015-04-25 21:15:52    阅读次数:186
Gray Code -- leetcode
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 number of bits in the code, print the sequence of ...
分类:其他好文   时间:2015-04-25 18:26:11    阅读次数:139
Recover Binary Search Tree
https://leetcode.com/problems/recover-binary-search-tree/Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without ch...
分类:其他好文   时间:2015-04-25 18:07:43    阅读次数:136
LeetCode Validate Binary Search Tree
Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only nodes with keys less than the node's key.Th...
分类:其他好文   时间:2015-04-25 15:11:01    阅读次数:135
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!