stack

package
v0.0.0-...-8d3c4b6 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FreqStack

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

FreqStack is a stack with frequences.

func Construct

func Construct() *FreqStack

Construct create a FreqStack

func (*FreqStack) Pop

func (fs *FreqStack) Pop() int

Pop pop the most frequces one from the stack.

func (*FreqStack) Push

func (fs *FreqStack) Push(x int)

Push push x into the stack

Jump to

Keyboard shortcuts

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