Package Struct

Class SegTree<T,R>

java.lang.Object
Struct.SegTree<T,R>
Type Parameters:
T - The type of the input elements stored in the initial array.
R - The result or operation type after applying the map and accumulation functions.

public class SegTree<T,R> extends Object
A generic segment tree implementation that provides efficient range query and point update operations. The tree allows aggregation of results over a segment of an array and is built based on provided mapping and accumulation functions.
Since:
1.0
Version:
1.0
Author:
Sahasrad Chippa