码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
[Java]LeetCode96 Unique Binary Search Trees
[Java]LeetCode96 Unique Binary Search Trees...
分类:编程语言   时间:2015-04-03 11:23:40    阅读次数:130
leetcode || 67、Add Binary
problem: Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". Hide Tags  Math String 题意:二进制数相加,二进制数用string表示 ...
分类:其他好文   时间:2015-04-03 11:20:12    阅读次数:121
【HDU 1693】Eat the Trees
插头dp入门题~...
分类:其他好文   时间:2015-04-03 09:30:26    阅读次数:110
leetcode|100|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-03 09:18:52    阅读次数:138
[LeetCode] Construct Binary Tree from Inorder and Postorder Traversal
Construct Binary Tree from Inorder and Postorder Traversal Given inorder and postorder traversal of a tree, construct the binary tree. Note: You may assume that duplicates do not exist in t...
分类:其他好文   时间:2015-04-03 01:35:34    阅读次数:131
LeetCode - Symmetric Tree
问题:判断二叉树是否为镜像二叉树分析:递归判断,根节点单独判断,然后递归左结点和右结点,之后每次一起递归左结点的左结点和右结点的右结点比较,左结点的右结点和右结点的左结点比较。 1 /** 2 * Definition for binary tree 3 * struct TreeNode { .....
分类:其他好文   时间:2015-04-03 00:11:45    阅读次数:198
二进制转bcd
BCD:Binary Coded Decimal 即用4位二进制编码表示1位的十进制数.定义:BCD码这种编码形式利用了四个位元来储存一个十进制的数码,使二进制和十进制之间的转换得以快捷的进行。这种编码技巧,最常用于会计系统的设计里,因为会计制度经常需要对很长的数字串作准确的计算。相对于一般的浮点式...
分类:其他好文   时间:2015-04-02 23:52:34    阅读次数:366
Leetcode: Binary Tree Postorder Traversal(二叉树后序遍历)
题目: Given a binary tree, return the postorder traversal of its nodes’ values.For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [3,2,1].Note: Recursive solution is trivial,...
分类:其他好文   时间:2015-04-02 22:39:03    阅读次数:180
解决ubuntu下eclipse菜单不显示
在ubuntu上安装eclipse后菜单点击不开, 解决方法: 关闭eclispe cd  /usr/share/applications vi eclipse.destop 在文件末尾添加下面内容 Exec=env UBUNTU_MENUPROXY=0 /your/path/to/eclipse/binary...
分类:系统相关   时间:2015-04-02 20:59:40    阅读次数:140
Leetcode: Binary Tree Inorder Traversal(二叉树中序遍历)
题目: Given a binary tree, return the inorder traversal of its nodes’ values.For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [1,3,2].Note: Recursive solution is trivial, c...
分类:其他好文   时间:2015-04-02 20:53:56    阅读次数:141
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!