segtree

package
v0.0.0-...-009c3dd Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: CC0-1.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SegTree

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

func New

func New(op func(a, b interface{}) interface{}, e func() interface{}, n int) *SegTree

func NewBySlice

func NewBySlice(op func(a, b interface{}) interface{}, e func() interface{}, v []interface{}) *SegTree

func (*SegTree) AllProd

func (s *SegTree) AllProd() interface{}

func (*SegTree) Get

func (s *SegTree) Get(p int) interface{}

func (*SegTree) MaxRight

func (s *SegTree) MaxRight(l int, f func(x interface{}) bool) int

func (*SegTree) MinLeft

func (s *SegTree) MinLeft(r int, f func(x interface{}) bool) int

func (*SegTree) Prod

func (s *SegTree) Prod(l, r int) interface{}

func (*SegTree) Set

func (s *SegTree) Set(p int, x interface{})

Jump to

Keyboard shortcuts

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