Domanda di colloquio di WhatBytes

What is a segment tree ?

Risposta di colloquio

Anonimo

6 ago 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.