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
a) O(n*q)
b) O(n)
c) O((q+n)√n)
d) O(q*√n)
b) O(n)
c) O((q+n)√n)
d) O(q*√n)
Accurate answers. Every time.
https://answerhappy.com/