_12_queue_on_list

package
v0.0.0-...-6d07767 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListQueue

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

func NewListQueue

func NewListQueue() *ListQueue

空队列时,头指针和尾指针都指向头结点

@return *ListQueue

func (*ListQueue) DeQueue

func (this *ListQueue) DeQueue() interface{}

func (*ListQueue) EnQueue

func (this *ListQueue) EnQueue(element interface{})

进队列,链表尾部插入

@receiver this
@param element

func (*ListQueue) Print

func (this *ListQueue) Print()

打印链表结构

@receiver this

type ListQueueInterface

type ListQueueInterface interface {
	// 进队列
	//  @param interface{}
	EnQueue(interface{})

	// 出队列
	//  @return interface{}
	DeQueue() interface{}
}

type Node

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

Jump to

Keyboard shortcuts

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