Jumptable

package module
v0.0.0-...-ba4bec0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

README

JumpTable

go实现跳表

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JumpNode

type JumpNode struct {
	NextNode []*JumpNode
	// contains filtered or unexported fields
}

type JumpTable

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

func NewJumpTable

func NewJumpTable() *JumpTable

func (*JumpTable) DeleteNode

func (jt *JumpTable) DeleteNode(key string) string

func (*JumpTable) InsertNode

func (jt *JumpTable) InsertNode(key string, val int) string

func (*JumpTable) Print

func (jt *JumpTable) Print()

func (*JumpTable) SearchNode

func (jt *JumpTable) SearchNode(leftVal, rightVal int) []*JumpNode

func (*JumpTable) UpdateNode

func (jt *JumpTable) UpdateNode(key string, val int) string

Jump to

Keyboard shortcuts

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