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