Problem 3179 · Medium

Find the N-th Value After K Seconds

Each second every position becomes the running total of the values before it, so the answer is a prefix sum updated in place.

Open the interactive visualisation