tree

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BIT

type BIT[integer constraints.Integer] []integer

func NewBIT

func NewBIT[integer constraints.Integer](n int) BIT[integer]

func (BIT[integer]) Query

func (b BIT[integer]) Query(idx int) integer

func (BIT[integer]) RangeQuery

func (b BIT[integer]) RangeQuery(l, r int) integer

func (BIT[integer]) Update

func (b BIT[integer]) Update(idx int, diff integer)

Jump to

Keyboard shortcuts

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