leetcode

package
v0.0.0-...-fdcae39 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MyStack

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

MyStack ...

func Constructor

func Constructor() MyStack

Constructor initialize your data structure here

func (*MyStack) Empty

func (s *MyStack) Empty() bool

Empty returns whether the stack is empty

func (*MyStack) Pop

func (s *MyStack) Pop() int

Pop removes the element on top of the stack and returns that element

func (*MyStack) Push

func (s *MyStack) Push(x int)

Push push element x onto stack

func (*MyStack) Top

func (s *MyStack) Top() int

Top get the top element

Jump to

Keyboard shortcuts

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