Documentation
¶
Index ¶
- func AngryStudentsAreTeachable(allStudents, badStudentIdxs []int, tolerance int) int
- func BricksEqualDivision(bricks []int) (int, bool)
- func BuyMachines(totalSum int, components []component) int
- func CommentsTransfer(comments string) (int, []string)
- func ElectionByMoney(peopleCount int, votes [][2]int) int
- func FindMaxValueStockHeapByBFS(matrix [][]int) int
- func FullCarForTravel(nums []int, n int) int
- func GetCompetitionAWinMaxScore(seqA, seqB []int) int
- func GetMaxScoreOfPokers(pokerStr string) int
- func GetMinLoopSubStr(n int, nums []int) []int
- func GetReplaceString(str string) string
- func InfectionDays(area []int) int
- func InfectionDays2(area []int) int
- func JudgeContinuousSumIsMultipleOfK(nums []int, m int) int
- func JumpGrids(grids []int) int
- func JumpGridsII(grids []int) int
- func JumpHousesII(steps []int, count int) []int
- func KMPGetNextTable(tmpl string) []int
- func KMPIndexOf(src, tmpl string) int
- func KSum(nums []int64, k int, target int64) int
- func MaxCopyFileSize(files []int, n int) int
- func Melon(stones []int) int
- func Melon2(stones []int) int
- func ProgramPractice(maxDays int, practiceTimes []int) int
- func SameWeightSubContinuousStr(str string) [2]int
- func SecretiveElevator(nums []int, target, n int) []int
- func ShoppingPlans(n, k int, prices []int) []int
- type Item
- type PriorityQueue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BricksEqualDivision ¶
func BuyMachines ¶
func CommentsTransfer ¶
func ElectionByMoney ¶
func FullCarForTravel ¶
func GetMaxScoreOfPokers ¶
func GetMinLoopSubStr ¶
func GetReplaceString ¶
func InfectionDays ¶
func InfectionDays2 ¶
func JumpGridsII ¶
func JumpHousesII ¶
func KMPGetNextTable ¶
func KMPIndexOf ¶
func MaxCopyFileSize ¶
func ProgramPractice ¶
func SecretiveElevator ¶
func ShoppingPlans ¶
Types ¶
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)
Click to show internal directories.
Click to hide internal directories.