Expand description
Provided node implementations.
Structsยง
- Lazy
SetWrapper - A wrapper for nodes to easily implement
LazyNodewith an update which sets the range to a value. If the wrapped node implementsPersistentNodethe wrapper also implements it. - Max
- Implementation of range max for generic type T, it only implements
Node. - MaxSub
Array Sum - Implementation of the solution to the maximum subarray problem. It just implements
Node. - Min
- Implementation of range min for generic type T, it only implements
Node. - Persistent
Wrapper - A simple wrapper for nodes to easily implement
PersistentNode. If the wrapped node implementsLazyNodethe wrapper also implements it. - Sum
- Implementation of range sum for generic type T, it implements
NodeandLazyNode, as such it can be used as a node in every segment tree type.