You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that this line should just use conquer(lsubtree,rsubtree), as currently it doesn't use the lazy value if applicable, and only checks for the minimum rather than what the conquer function specifies
The text was updated successfully, but these errors were encountered:
Actually I think you can replace lines 62-64 with simply conquer(l(p), r(p)) since the code has already called update on both l(p) and r(p), and update always begins with propagate which ensures that the two children won't have lazy flags set.
cpbook-code/ch2/ourown/segmenttree_ds.cpp
Line 64 in fa53432
I think that this line should just use
conquer(lsubtree,rsubtree)
, as currently it doesn't use the lazy value if applicable, and only checks for the minimum rather than what theconquer
function specifiesThe text was updated successfully, but these errors were encountered: