Range Addition — Difference Array & Sweep
Apply a batch of adjustments, each adding to a span of bins, to a row that starts empty, and report the final contents.
Difference Array & Sweep · Medium
Apply a batch of adjustments, each adding to a span of bins, to a row that starts empty, and report the final contents.
Difference Array & Sweep · Medium