Expand description
Provided node implementations.
Structsยง
- Lazy
SetWrapper - A wrapper for nodes to easily implement
LazyNode
with an update which sets the range to a value. If the wrapped node implementsPersistentNode
the 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 implementsLazyNode
the wrapper also implements it. - Sum
- Implementation of range sum for generic type T, it implements
Node
andLazyNode
, as such it can be used as a node in every segment tree type.