Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 649 Bytes

File metadata and controls

9 lines (5 loc) · 649 Bytes

Data Structures MCQ 2

Which of the following data structures can handle updates and queries in log(n) time on an array?

[  ]  Linked list                    [  ]  Stack

[X]  Segment Tree              [  ]  Queue

Explanation: Correct answer is Segment Tree. Please refer to this wikipedia article to read all the details of Segment Trees.