Quiz on Prefix Sum for DSA: Question 4

Last Updated :
Discuss
Comments

What is the time complexity of constructing a prefix sum array for an array of size n?


O(n)

O(log n)

O(1)

O(n^2)

Tags:
Share your thoughts in the comments