Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Element ¶
type Element[S Merger[S], T Initer[S]] struct { // contains filtered or unexported fields }
type Int64Schema ¶ added in v1.1.0
func (Int64Schema) Merge ¶ added in v1.1.0
func (c Int64Schema) Merge(d Int64Schema) Int64Schema
Merge 合并摘要信息
type SegmentTree ¶
type SegmentTree[S Merger[S], T Initer[S]] struct { // contains filtered or unexported fields }
func New ¶
func New[S Merger[S], T Initer[S]](arr []T) *SegmentTree[S, T]
func (*SegmentTree[S, T]) Query ¶
func (c *SegmentTree[S, T]) Query(begin int, end int) S
Query 查询 begin <= index < end 区间
Click to show internal directories.
Click to hide internal directories.