Problem 1714 · Medium

Sum Of Special Evenly-Spaced Elements In Array

Each query sums a stride through the array: start, start plus step, and so on while the index stays inside the array.

Open the interactive visualisation