Help us shape the future of Go! Take the 2026 Go Developer Survey

link

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ring

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

func InitRing

func InitRing() *Ring

func (*Ring) InsertByHead

func (r *Ring) InsertByHead(data ...interface{})

InsertByHead 头插法

func (*Ring) InsertByTail

func (r *Ring) InsertByTail(data ...interface{})

InsertByTail 尾插法

func (r *Ring) Link(s *Ring) *Ring

Link 往节点A,链接一个节点,并且返回之前节点A的后驱节点

func (*Ring) Move

func (r *Ring) Move(n int) *Ring

func (*Ring) NextNode

func (r *Ring) NextNode() *Ring

func (*Ring) NodeData

func (r *Ring) NodeData() interface{}

func (*Ring) PrevNode

func (r *Ring) PrevNode() *Ring

func (*Ring) Print

func (r *Ring) Print()

Jump to

Keyboard shortcuts

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