Some operations shift all breakpoints: 'add to all elements' shifts the function right by . Instead of updating every breakpoint, track a global offset. Apply lazily when popping. Maintain: . When inserting, subtract offset first.
This handles shifts in instead of . needed for problems with many shift operations. Global shifts are common in Slope Trick problems. Lazy propagation avoids updates per operation.