线段树
wutingyehe
Just for fun
展开
-
[LintCode]Segment Tree Build 构造线段树
The structure of Segment Tree is a binary tree which each node has two attributes start and end denote an segment / interval. start and end are both integers, they should be assigned in following rule原创 2015-09-06 11:18:55 · 608 阅读 · 0 评论 -
[LintCode]Segment Tree Query 线段树的查询
For an integer array (index from 0 to n-1, where n is the size of this array), in the corresponding SegmentTree, each node stores an extra attribute max to denote the maximum number in the interval of原创 2015-09-06 15:01:40 · 888 阅读 · 0 评论