s0225

package
v0.0.0-...-47d8553 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run0225

func Run0225()

Types

type MyStack

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

func Constructor

func Constructor() MyStack

* Initialize your data structure here.

func (*MyStack) Empty

func (this *MyStack) Empty() bool

* Returns whether the stack is empty.

func (*MyStack) Pop

func (this *MyStack) Pop() int

* Removes the element on top of the stack and returns that element.

func (*MyStack) Push

func (this *MyStack) Push(x int)

* Push element x onto stack.

func (*MyStack) Top

func (this *MyStack) Top() int

* Get the top element.

Jump to

Keyboard shortcuts

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