minstack

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MinStack

type MinStack[T cmp.Comparable[T]] struct {
	// contains filtered or unexported fields
}

MinStack ...

func NewMinStack

func NewMinStack[T cmp.Comparable[T]]() MinStack[T]

NewMinStack ...

func (*MinStack[T]) GetMin

func (ms *MinStack[T]) GetMin() T

GetMin ...

func (*MinStack[T]) Pop

func (ms *MinStack[T]) Pop()

Pop ...

func (*MinStack[T]) Push

func (ms *MinStack[T]) Push(x T)

Push ...

func (*MinStack[T]) Top

func (ms *MinStack[T]) Top() T

Top ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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