Quiz on Prefix Sum for DSA: Question 6

Last Updated :
Discuss
Comments

What happens if we modify the values of the original array after constructing a prefix sum array?

The prefix sum array will automatically update

The prefix sum array will keep the old values

The prefix sum array will update only the first element

The prefix sum array becomes invalid and needs to be recalculated

Tags:
Share your thoughts in the comments