Overview of Segment Tree data structure
A Segment Tree is a data structure used for efficient range queries on an array. It is constructed by recursively dividing the array into smaller segments and storing the results of operations (e.g., sum, min, max) on those segments.
Complexity Analysis:
- Space Complexity: O(n)
- Time Complexity (Access, Lookup, Insertion, Deletion): O(log n)