Skip to content

Commit cf9e60b

Browse files
+ Constant time range add operation on an array (modified) (for any array provided)
1 parent 75dce66 commit cf9e60b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Scripts/Constant time range add operation on an array (for any array provided).py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def range_add_op(array: list, ranges: list, addition: int):
1717
for i,curr_ele in enumerate(arr_for_0[:len(array)]):
1818
previous_ele = previous_ele + curr_ele
1919

20-
#add the sum we got array of 0s to the original array
20+
#add the sum we got from array_of_0s to the original array
2121
array[i] += previous_ele
2222

2323
return array

0 commit comments

Comments
 (0)