

MCQOPTIONS
Saved Bookmarks
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 number of such queries when we apply MO’s algorithm? |
A. | O(n*q) |
B. | O(n) |
C. | O((q+n)√n) |
D. | O(q*√n) |
Answer» D. | |