Which data structure provides efficient range minimum queries with O(1) time after O(n log n) preprocessing?
-
A
Segment Tree
-
B
Sparse Table
Correct answer
-
C
Fenwick Tree
-
D
Binary Indexed Tree
Correct answer
B. Sparse Table
15 views
Explanation
The Sparse Table data structure supports range minimum queries in O(1) time with O(n log n) preprocessing.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ