码迷,mamicode.com
首页 >  
搜索关键字:binary index tree    ( 56466个结果
HLG 1752 Page Rank (线段树)
链接: http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=1752 Description There are n webpages, each of which has its respective page rank. The content is constantly updated ...
分类:其他好文   时间:2014-06-09 23:32:22    阅读次数:270
Symmetric Tree
题目 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric: 1 / 2 2 / \ / 3 4 4 3 ...
分类:其他好文   时间:2014-06-08 18:12:04    阅读次数:248
Binary Tree Zigzag Level Order Traversal
题目 Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between). For example: G...
分类:其他好文   时间:2014-06-08 17:29:07    阅读次数:315
HDU 1754 I hate it 分段树Segment Tree题解
给出一段数据,然后要更新单个数据,会询问一段数据中的最大值。 又是一道分段树操作。渐渐熟手了。 #pragma once #include #include using namespace std; class IHateIt_1754_1 { static const int SIZE = 200001; int *segTree; //不要使用segTree[SIZE<<2]...
分类:其他好文   时间:2014-06-08 15:40:21    阅读次数:208
extjs tree check 级联选择
extjs4 tree check 级联选择 实现效果:关键代码: function changeAllNode(node, isCheck) { allChild(node, isCheck); allParent(node, isCheck); function allChild(nodec, isCheckc) { var chileNodes = n...
分类:Web程序   时间:2014-06-08 15:25:20    阅读次数:222
HLG 1710 给出三个集合a,b,c,统计集合a元素+集合b中元素=集合c中的元素的个数 (基础题)
链接: http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=1710 Description 有A、 B、 C 三个集合的,其中a∈A, b ∈ B, c ∈ C,求有多少种方式使得a + b = c。 Input 有多组测试数据,请处理到文件结束。 对于每组测试数据,有三行: 第...
分类:其他好文   时间:2014-06-08 15:14:00    阅读次数:245
Qt官方教程翻译——Qt Quick
附网址:http://qt-project.org/doc/qt-5/qtquick-index.html Qt Quick Qt Quick组件是编写QML应用程序的标准库。Qt QML组件提供了QML的引擎和语言基础,Qt Quick组件则提供了QML创建用户图形界面的所有基本类型。它提供了一个可视化的画布,以及创造可视化组件、接收用户输入、创造数据模型和视图、延迟实例化对象等多种...
分类:其他好文   时间:2014-06-08 10:31:41    阅读次数:381
Maximum Depth of Binary Tree
题目 Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. 方法 使用DFS对树进行遍...
分类:其他好文   时间:2014-06-08 10:26:33    阅读次数:207
Binary Tree Level Order Traversal II
题目 Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). For example: Given binary tree {3,9,20...
分类:其他好文   时间:2014-06-08 09:23:34    阅读次数:230
HLG 1524 最大 (离散化线段树)
链接: http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=1524 Description 给包含n个数的初始序列,A[1], A[2], ..., A[n]。 给q多个操作,操作如下: 1 a b v, 把[a, b] 的值改为v,即A[a] = A[a+1] = ... = A[b]...
分类:其他好文   时间:2014-06-08 08:22:06    阅读次数:216
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!