package
Version:
v1.3.9
Opens a new window with list of versions in this module.
Published: Jul 21, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶

t[x]父节点 = t[x+lowbit(x)]
t[x]前一个兄弟节点 = t[x-lowbit(x)]
add

ask

区间修改,区间查询

Documentation
¶
NewTreeNum 初始化一个存储n个元素的树状数组
Ask 查询x下标处的前缀和;x = [0,n-1]
Source Files
¶
Click to show internal directories.
Click to hide internal directories.