Up to 10^5 queries each set a whole index range to one value. Produce the final array without touching every cell per query.
Up to 10^5 queries each set a whole index range to one value. Produce the final array without touching every cell per query.
The discussion opens with the full question.