SegmentTree

package
v0.0.0-...-adc727d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SegmentTree

type SegmentTree struct {
	// contains filtered or unexported fields
}

func Constructor

func Constructor(arr []interface{}, merger func(interface{}, interface{}) interface{}) *SegmentTree

func (*SegmentTree) Get

func (this *SegmentTree) Get(index int) interface{}

func (*SegmentTree) GetSize

func (this *SegmentTree) GetSize() int

func (*SegmentTree) Query

func (this *SegmentTree) Query(queryL int, queryR int) interface{}

返回区间[queryL, queryR]的值

func (*SegmentTree) Set

func (this *SegmentTree) Set(index int, e interface{})

func (*SegmentTree) String

func (this *SegmentTree) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL