Skip to content

Commit cd0d2d0

Browse files
committed
new line
1 parent 78d12f3 commit cd0d2d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

prefix.py

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def query(self, l: int, r: int) -> int:
1313
for i in range(l, r + 1):
1414
sum += self.arr[i]
1515
return sum
16+
1617
def queryOptimized(self, l: int, r: int) -> int:
1718
sum = self.prefix[r]
1819
if l > 0:

0 commit comments

Comments
 (0)