mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-30 22:23:42 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
ada767d31b
commit
0018a8ed26
|
@ -76,5 +76,6 @@ class PersistentSegmentTree:
|
||||||
if left <= start and right >= end:
|
if left <= start and right >= end:
|
||||||
return node.value
|
return node.value
|
||||||
mid = (start + end) // 2
|
mid = (start + end) // 2
|
||||||
return (self._query(node.left, start, mid, left, right) +
|
return self._query(node.left, start, mid, left, right) + self._query(
|
||||||
self._query(node.right, mid + 1, end, left, right))
|
node.right, mid + 1, end, left, right
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user