stack

package
v0.0.0-...-7253c86 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CarFleet

func CarFleet(target int, position []int, speed []int) int

func DailyTemperatures

func DailyTemperatures(temperatures []int) []int

func EvaluateReversePolishNotation

func EvaluateReversePolishNotation(tokens []string) int

func GenerateParentheses

func GenerateParentheses(n int) []string

func LargestRectangleInHistogram

func LargestRectangleInHistogram(heights []int) int

func ValidParentheses

func ValidParentheses(s string) bool

Types

type MinStack

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

func Constructor

func Constructor() MinStack

func (*MinStack) GetMin

func (this *MinStack) GetMin() int

func (*MinStack) Pop

func (this *MinStack) Pop()

func (*MinStack) Push

func (this *MinStack) Push(val int)

func (*MinStack) Top

func (this *MinStack) Top() int

type StackNode

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

Jump to

Keyboard shortcuts

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