skipList

package
v0.0.0-...-9fc3898 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAXLEVEL = 16
	MAXROUND = 65536
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

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

func NewNode

func NewNode(newKey int, newVal interface{}) *Node

type SkipList

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

func NewSkipList

func NewSkipList() *SkipList

func (*SkipList) Add

func (s *SkipList) Add(key int, newVal interface{})

func (*SkipList) Erase

func (s *SkipList) Erase(key int) (result bool)

func (*SkipList) Get

func (s *SkipList) Get(key int) (*Node, error)

func (*SkipList) GetSize

func (s *SkipList) GetSize() int

func (*SkipList) Print

func (s *SkipList) Print()

func (*SkipList) Search

func (s *SkipList) Search(key int) (*Node, error)

Jump to

Keyboard shortcuts

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