dkh.algorithm

Undocumented in source.

Members

Functions

binSearch
T binSearch(T l, T r)
T binSearch(T l, T r, int cnt)

Do binary search, pred(l) must be false, pred(r) must be true, and pred must have monotonic

maximum
E maximum(Range range, E seed)
ElementType!Range maximum(Range range)

Find maximum

minimum
E minimum(Range range, E seed)
ElementType!Range minimum(Range range)

Find minimum

rotator
Rotator!Range rotator(Range r)
Rotator
struct Rotator(Range)

Range that rotate elements.

Structs

Meta