What is a segment tree ?
Anonymous
A Segment Tree is a data structure that stores information about array intervals as a tree. This allows answering range queries over an array efficiently, while still being flexible enough to allow quick modification of the array.
Check out your Company Bowl for anonymous work chats.