Open sak-codes opened 1 year ago
Merging #539 (069b5df) into main (8f419fd) will decrease coverage by
1.743%
. Report is 15 commits behind head on main. The diff coverage is71.014%
.
I am trying to design the method parameters such that I can generalize the implementation but since lazy updates for each of the different applications have different implementation, I am unable to find a common design.
lazy updates for each of the different applications have different implementation, I am unable to find a common design.
Share some examples so that we can figure something out.
Suppose we are solving an range sum update problem where we want to increment all the elements in the range $[i, j]$ with some number x
. This is okay and well generalized for j != i
. But when we want to change some element at index $i$, then if we use the same above approach then we need to pass by y=x-cur_value[i]
, then during the update we will have cur_value[i] += y
. So user will get confuse when to use y
and when to use x
.
So you want me to rename update_range
to update
?
References to other Issues or PRs or Relevant literature
Brief description of what is fixed or changed
Other comments