码迷,mamicode.com
首页 >  
搜索关键字:binary tree    ( 23211个结果
Construct Binary Tree from Preorder and Inorder Traversal
Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.思路:由前序遍历数组和中序遍历...
分类:其他好文   时间:2014-04-30 02:20:33    阅读次数:366
LeetCode——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 number...
分类:其他好文   时间:2014-04-30 00:21:32    阅读次数:536
Binary Tree Postorder Traversal
借助堆栈完成迭代形式的后序遍历
分类:其他好文   时间:2014-04-29 19:22:59    阅读次数:404
Binary Tree Preorder Traversal
借助堆栈完成迭代形式的先序遍历。
分类:其他好文   时间:2014-04-29 19:03:25    阅读次数:474
中科院随机算法课程(孙晓明主讲)topic list
如题,列出《随机算法》课程的topic list,以记录和供有兴趣的朋友研究。Lession1:生日悖论、生日攻击、两个常用数学工具(马尔科夫不等式、切比雪夫不等式)Lession2:radom quick sort(hw)、矩阵乘法判定、min(max())=max(min())、复杂性类(BPP...
分类:其他好文   时间:2014-04-29 16:16:55    阅读次数:596
Binary String Matching
Binary String Matching时间限制:3000ms | 内存限制:65535KB难度:3描述Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell ho...
分类:其他好文   时间:2014-04-29 15:02:00    阅读次数:564
whatweb tree
.├── 1.txt├── addons│ ├── country-scanner│ ├── gggooglescan│ ├── hunter│ └── verify-nikto├── CHANGELOG├── INSTALL├── lib│ ├── colour.rb│ ├── extend-ht...
分类:Web程序   时间:2014-04-28 14:10:38    阅读次数:4375
[leetcode] Add Binary
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".给定两个二进制的字符串,返回他们的和。对于a,b两个二进制字符串,首先通过交换使a的长度小于b...
分类:其他好文   时间:2014-04-28 02:05:20    阅读次数:502
支持泛型AVL Tree的简单实现,并和STL map比较了插入,删除,查找的性能
支持泛型AVL Tree的简单实现,并和STL map比较了插入,删除,查找的性能...
分类:其他好文   时间:2014-04-27 19:43:40    阅读次数:400
leetcode day4 -- Binary Tree Postorder(Preorder) Traversal && Edit Distance
?? 1、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 retu...
分类:其他好文   时间:2014-04-27 18:58:59    阅读次数:481
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!