Examveda

What will be the worst case time complexity of finding the sum of elements in a given range of (l,r) in an array of size n?

A. O(n)

B. O(l+r)

C. O(l-r)

D. O(r-l)

Answer: Option A


This Question Belongs to Data Structure >> Miscellaneous On Data Structures

Join The Discussion

Related Questions on Miscellaneous on Data Structures