linkedListStack

package
v0.0.0-...-9fc3898 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stack

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

func NewLinkedListStack

func NewLinkedListStack() *Stack

func NewLinkedListStackWithCapacity

func NewLinkedListStackWithCapacity(capacity int) *Stack

func (*Stack) Clear

func (s *Stack) Clear()

func (*Stack) IsEmpty

func (s *Stack) IsEmpty() bool

func (*Stack) IsFull

func (s *Stack) IsFull() bool

func (*Stack) Peek

func (s *Stack) Peek() (interface{}, error)

func (*Stack) Pop

func (s *Stack) Pop() (value interface{}, err error)

func (*Stack) Push

func (s *Stack) Push(value interface{}) error

func (*Stack) Size

func (s *Stack) Size() int

Jump to

Keyboard shortcuts

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