Package blue.bluejam.algorithms.kotlin.datastructure

Types

Link copied to clipboard
class SegmentTree<T>(    n: Int,     val e: T,     val op: (T, T) -> T)

Segment Tree that manages a list of T.

Link copied to clipboard
class UnionFind(n: Int)

A disjoint set data structure with path compression and union by size.