Documentation
¶
Index ¶
- type SegTree
- func (s *SegTree) AllProd() interface{}
- func (s *SegTree) Get(p int) interface{}
- func (s *SegTree) MaxRight(l int, f func(x interface{}) bool) int
- func (s *SegTree) MinLeft(r int, f func(x interface{}) bool) int
- func (s *SegTree) Prod(l, r int) interface{}
- func (s *SegTree) Set(p int, x interface{})
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 NewBySlice ¶
func NewBySlice(op func(a, b interface{}) interface{}, e func() interface{}, v []interface{}) *SegTree
Click to show internal directories.
Click to hide internal directories.