mstk

package
v0.0.0-...-b8574e7 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MaxStack

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

func Constructor

func Constructor() *MaxStack

func (*MaxStack) PeekMax

func (this *MaxStack) PeekMax() int

func (*MaxStack) Pop

func (this *MaxStack) Pop() int

func (*MaxStack) PopMax

func (this *MaxStack) PopMax() int

func (*MaxStack) Push

func (this *MaxStack) Push(x int)

func (*MaxStack) Top

func (this *MaxStack) Top() int

type MaxStack2

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

func NewMaxStack2

func NewMaxStack2() *MaxStack2

func (*MaxStack2) PeekMax

func (this *MaxStack2) PeekMax() int

func (*MaxStack2) Pop

func (this *MaxStack2) Pop() int

func (*MaxStack2) PopMax

func (this *MaxStack2) PopMax() int

func (*MaxStack2) Push

func (this *MaxStack2) Push(x int)

func (*MaxStack2) Top

func (this *MaxStack2) Top() int

Jump to

Keyboard shortcuts

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