[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-10-19 10:13:22 +00:00
parent ada767d31b
commit 0018a8ed26

View File

@ -76,5 +76,6 @@ class PersistentSegmentTree:
if left <= start and right >= end:
return node.value
mid = (start + end) // 2
return (self._query(node.left, start, mid, left, right) +
self._query(node.right, mid + 1, end, left, right))
return self._query(node.left, start, mid, left, right) + self._query(
node.right, mid + 1, end, left, right
)