HF RL Explorer

Segment Tree Memory Allocation Calculator

Segment Tree Memory Allocation Calculator: a task in Terminal-Lego-15k (Harbor dataset). A segment tree is a data structure used for storing information about intervals or segments. When implementing a segment tree using an array representation (where parent-child relationships are maintained via…

The task

A segment tree is a data structure used for storing information about intervals or segments. When implementing a segment tree using an array representation (where parent-child relationships are maintained via indices), the required array size follows a specific formula.

Part of PrimeIntellect/Terminal-Lego-15k.