Page 1 of 1

What will be the worst case time complexity of code to find sum in given query range (l,r) in an array of size n with q

Posted: Wed Jul 13, 2022 7:41 pm
by answerhappygod
a) O(n)
b) O(q)
c) O(n*q)
d) O(n+q)