WhatBytes interview question

What is a segment tree ?

Interview Answer

Anonymous

Aug 6, 2024

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.