Skip to content
RED SAGSkills
easy5 pts · first answer countsarrayssliding-window

Updating a fixed-size window sum

You keep the sum of the last k values. When the window moves one step right, how do you update the sum in O(1)?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions