fhq

package
v2.0.0-...-fba89a2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func At

func At[T constraints.Integer | constraints.Float](root *fhqTreapNode[T], k uint) *fhqTreapNode[T]

Types

type FHQTreap

type FHQTreap[T constraints.Integer | constraints.Float] struct {
	// contains filtered or unexported fields
}

func New

func (*FHQTreap[T]) At

func (t *FHQTreap[T]) At(k uint) (T, error)

func (*FHQTreap[T]) Clear

func (t *FHQTreap[T]) Clear()

func (*FHQTreap[T]) Contains

func (t *FHQTreap[T]) Contains(value T) bool

func (*FHQTreap[T]) Delete

func (t *FHQTreap[T]) Delete(value T)

func (*FHQTreap[T]) Empty

func (t *FHQTreap[T]) Empty() bool

func (*FHQTreap[T]) Index

func (t *FHQTreap[T]) Index(value T) uint

func (*FHQTreap[T]) Insert

func (t *FHQTreap[T]) Insert(value T)

func (*FHQTreap[T]) Predecessor

func (t *FHQTreap[T]) Predecessor(value T) (T, error)

func (*FHQTreap[T]) Size

func (t *FHQTreap[T]) Size() uint

func (*FHQTreap[T]) Successor

func (t *FHQTreap[T]) Successor(value T) (T, error)

Jump to

Keyboard shortcuts

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