Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb6dce2

Browse files
committed
formatting
1 parent 7ba5584 commit fb6dce2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/data_structures/fenwick.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,9 @@ And we also update $B_2$. The details will be explained later.
398398
```python
399399
def range_add(l, r, x):
400400
add(B1, l, x)
401-
add(B1, r+1, -x)
402-
add(B2, l, x*(l-1))
403-
add(B2, r+1, -x*r))
401+
add(B1, r + 1, -x)
402+
add(B2, l, x * (l - 1))
403+
add(B2, r + 1, -x * r))
404404
```
405405
After the range update $(l, r, x)$ the range sum query should return the following values:
406406

0 commit comments

Comments
 (0)