码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
POJ - 1392 Ouroboros Snake (欧拉回路的应用)
Description Ouroboros is a mythical snake from ancient Egypt. It has its tail in its mouth and continously devours itself. The Ouroboros numbers are binary numbers of 2^n bits that have the prop...
分类:其他好文   时间:2014-08-09 11:40:57    阅读次数:315
[leetcode]Binary Tree Postorder Traversal
Binary Tree Postorder TraversalGiven a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \...
分类:其他好文   时间:2014-08-08 23:58:26    阅读次数:485
[leetcode]Binary Tree Level Order Traversal II
Binary Tree Level Order Traversal IIGiven a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level...
分类:其他好文   时间:2014-08-08 23:53:16    阅读次数:221
[leetcode]Binary Tree Level Order Traversal
Binary Tree Level Order TraversalGiven a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).Fo...
分类:其他好文   时间:2014-08-08 23:51:06    阅读次数:265
动态树 Link-Cut Trees
动态树动态树问题, 即要求我们维护一个由若干棵子结点无序的有根树组成的森林。要求这个数据结构支持对树的分割、合并,对某个点到它的根的路径的某些操作,以及对某个点的子树进行的某些操作。在这里我们考虑一个简化的动态树问题,它只包含对树的形态的操作和对某个点到根的路径的操作:维护一个数据结构,支持以下操作...
分类:其他好文   时间:2014-08-08 23:48:56    阅读次数:306
[leetcode]Binary Tree Zigzag Level Order Traversal
Binary Tree Zigzag Level Order TraversalGiven a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then...
分类:其他好文   时间:2014-08-08 23:48:36    阅读次数:307
Leetcode--Recover Binary Search Tree
Problem Description: 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 straigh...
分类:其他好文   时间:2014-08-08 21:22:36    阅读次数:315
DB2数据类型
DB2数据库的内置数据类型主要分成数值型(numeric)、字符串型(character string)、图形字符串(graphic string)、二进制字符串型(binary string)或日期时间型(datetime)。还有一种叫做 DATALINK 的特殊数据类型。DATALINK 值包含...
分类:数据库   时间:2014-08-08 17:22:26    阅读次数:346
HDU4925:Apple Tree
Problem Description I’ve bought an orchard and decide to plant some apple trees on it. The orchard seems like an N * M two-dimensional map. In each grid, I can either plant an apple tree to get one...
分类:移动开发   时间:2014-08-08 16:13:06    阅读次数:281
【ThinkingInC++】3、文件的拷贝
/** * 功能:文件的拷贝 * 时间:2014年8月8日07:40:21 * 作者:cutter_point */ #include #include #include #include using namespace std; int main() { ifstream fin("test1.jpg", ios::binary); ofstream fout("fuzhi...
分类:编程语言   时间:2014-08-08 09:43:36    阅读次数:263
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!