• + 0 comments

    The "Apply operation part" is O(k) here. In the diff array version, apply operation is O(1)