Segment Tree
Segment Tree (Iterative)
· ☕ 4 min read · 🦂 Kyle

A segment tree is a binary tree where each node represents an interval. Each node stores some property of its corresponding interval: like the maximum/minimum num, the sum of that interval.

Segment Tree (Iterative)