01. 线段树知识 #104
01. 线段树知识
#104
Replies: 2 comments 2 replies
-
3.2 部分 线段树的区间查询,为什么有个 |
Beta Was this translation helpful? Give feedback.
2 replies
-
def __update_interval(self, q_left, q_right, val, index, left, right):
这端代码中 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
01. 线段树知识
right 通常是整数。每一个叶子节点表示了一个单位区间(长度为 1
),叶子节点对应区间上 left == right。每一个非叶子节点 [left, ...https://algo.itcharge.cn/07.Tree/03.Segment-Tree/01.Segment-Tree/
Beta Was this translation helpful? Give feedback.
All reactions