OSDN Git Service
(root)
/
oi-wiki
/
main.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3d8fbb
)
Update docs/ds/bit.md
author
Wrzz
<961337146@qq.com>
Sat, 14 Sep 2019 03:26:08 +0000
(11:26 +0800)
committer
GitHub
<noreply@github.com>
Sat, 14 Sep 2019 03:26:08 +0000
(11:26 +0800)
Co-Authored-By: ouuan <y___o___u@126.com>
docs/ds/bit.md
patch
|
blob
|
history
diff --git
a/docs/ds/bit.md
b/docs/ds/bit.md
index
44297c7
..
b33d282
100644
(file)
--- a/
docs/ds/bit.md
+++ b/
docs/ds/bit.md
@@
-90,7
+90,7
@@
int getsum(int x) { // a[1]……a[x]的和
}
```
-## 区间
修改
加区间求和
+## 区间加区间求和
若维护序列 $a$ 的差分数组 $b$ ,此时我们对 $a$ 的一个前缀 $r$ 求和,即 $\sum_{i=1}^{r} a_i$ ,由差分数组定义得 $a_i=\sum_{j=1}^i b_j$