solution

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

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

Go to latest
Published: Jan 3, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export()

Types

type MyStack

type MyStack struct {
}

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