Skip to content

Commit 49ea535

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 49f366e commit 49ea535

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dynamic_programming/range_sum_query.py

+2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
so if we do prefix[r] - prefix[l - 1] it will be
6060
[0, r] - [0, l - 1] = [0, l - 1] + [l, r] - [0, l - 1] = [l, r]
6161
"""
62+
63+
6264
def prefix_sum(array: list[int], queries: list[tuple[int, int]]) -> list[int]:
6365
"""
6466
>>> prefix_sum([1, 4, 6, 2, 61, 12], [(2, 5), (1, 5), (3, 4)])

0 commit comments

Comments
 (0)