skipnode

package
v0.0.0-...-b03bf0d Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const MaxLevel = 32

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

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

type Node

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

func NewNode

func NewNode(level, value uint32) *Node

type SkipList

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

func NewSkipList

func NewSkipList() *SkipList

func (*SkipList) Add

func (sl *SkipList) Add(value uint32) bool

func (*SkipList) Delete

func (sl *SkipList) Delete(value uint32) bool

删除元素

func (*SkipList) Find

func (sl *SkipList) Find(value uint32) *Node

查找单个node

Jump to

Keyboard shortcuts

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