b

package
v0.0.0-...-66c0c6b Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AngryStudentsAreTeachable

func AngryStudentsAreTeachable(allStudents, badStudentIdxs []int, tolerance int) int

func BricksEqualDivision

func BricksEqualDivision(bricks []int) (int, bool)

func BuyMachines

func BuyMachines(totalSum int, components []component) int

func CommentsTransfer

func CommentsTransfer(comments string) (int, []string)

func ElectionByMoney

func ElectionByMoney(peopleCount int, votes [][2]int) int

func FindMaxValueStockHeapByBFS

func FindMaxValueStockHeapByBFS(matrix [][]int) int

func FullCarForTravel

func FullCarForTravel(nums []int, n int) int

func GetCompetitionAWinMaxScore

func GetCompetitionAWinMaxScore(seqA, seqB []int) int

func GetMaxScoreOfPokers

func GetMaxScoreOfPokers(pokerStr string) int

func GetMinLoopSubStr

func GetMinLoopSubStr(n int, nums []int) []int

func GetReplaceString

func GetReplaceString(str string) string

func InfectionDays

func InfectionDays(area []int) int

func InfectionDays2

func InfectionDays2(area []int) int

func JudgeContinuousSumIsMultipleOfK

func JudgeContinuousSumIsMultipleOfK(nums []int, m int) int

func JumpGrids

func JumpGrids(grids []int) int

func JumpGridsII

func JumpGridsII(grids []int) int

func JumpHousesII

func JumpHousesII(steps []int, count int) []int

func KMPGetNextTable

func KMPGetNextTable(tmpl string) []int

func KMPIndexOf

func KMPIndexOf(src, tmpl string) int

func KSum

func KSum(nums []int64, k int, target int64) int

func MaxCopyFileSize

func MaxCopyFileSize(files []int, n int) int

func Melon

func Melon(stones []int) int

func Melon2

func Melon2(stones []int) int

func ProgramPractice

func ProgramPractice(maxDays int, practiceTimes []int) int

func SameWeightSubContinuousStr

func SameWeightSubContinuousStr(str string) [2]int

func SecretiveElevator

func SecretiveElevator(nums []int, target, n int) []int

func ShoppingPlans

func ShoppingPlans(n, k int, prices []int) []int

Types

type Item

type Item struct {
	Value *combineModel
	// contains filtered or unexported fields
}

type PriorityQueue

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

func NewPriorityQueue

func NewPriorityQueue() *PriorityQueue

func (*PriorityQueue) Pop

func (pq *PriorityQueue) Pop() (*Item, error)

func (*PriorityQueue) Push

func (pq *PriorityQueue) Push(i *Item)

Jump to

Keyboard shortcuts

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