stack

package
v0.0.0-...-0e811a7 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkStack

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

func NewLinkStack

func NewLinkStack() *LinkStack

func (*LinkStack) Len

func (this *LinkStack) Len() int

func (*LinkStack) Peek

func (this *LinkStack) Peek() interface{}

查看栈顶元素

func (*LinkStack) Pop

func (this *LinkStack) Pop() interface{}

出栈

func (*LinkStack) Push

func (this *LinkStack) Push(value interface{})

入栈

type MinStack

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

func Constructor

func Constructor() MinStack

* initialize your data structure here.

func (*MinStack) GetMin

func (this *MinStack) GetMin() int

func (*MinStack) Pop

func (this *MinStack) Pop()

func (*MinStack) Push

func (this *MinStack) Push(x int)

func (*MinStack) Top

func (this *MinStack) Top() int

type SequentialStack

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

func NewSequentialStack

func NewSequentialStack() *SequentialStack

func (*SequentialStack) Len

func (this *SequentialStack) Len() int

func (*SequentialStack) Peek

func (this *SequentialStack) Peek() interface{}

func (*SequentialStack) Pop

func (this *SequentialStack) Pop() interface{}

func (*SequentialStack) Push

func (this *SequentialStack) Push(x interface{})

Jump to

Keyboard shortcuts

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