Segment Tree Applications for Statistical and Binary Sequence Operations
Statistical Operations on Intervals Problem Description Given a sequence of up to 1e5 elements, support three operations on intervals [l, r]: Add a constant value to all elements in the interval Calculate the average of elements in the interval Calculate the variance of elements in the itnerval Vari...