Documentation
¶
Index ¶
- func CalcEquation(equations [][]string, values []float64, queries [][]string) []float64
- func CalcEquation2(equations [][]string, values []float64, queries [][]string) []float64
- func CalcEquationMine(equations [][]string, values []float64, queries [][]string) []float64
- func CanPlaceFlowers(flowerbed []int, n int) bool
- func CheckStraightLine(coordinates [][]int) bool
- func FibonacciNumber(n int) int
- func FibonacciNumber2(n int) int
- func LargeGroupPositions(s string) [][]int
- func LargeGroupPositions2(s string) [][]int
- func MaxSlidingWindow2(nums []int, k int) []int
- func MaxSlidingWindow3(nums []int, k int) []int
- func MaximumProduct(nums []int) int
- func NumberOfProvinces(isConnected [][]int) int
- func NumberOfProvinces2(isConnected [][]int) int
- func NumberOfProvinces3(isConnected [][]int) int
- func PrefixesDivBy5(A []int) []bool
- func RotateArray(nums []int, k int)
- func RotateArray2(nums []int, k int)
- func SummaryRanges(nums []int) []string
- type ListNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcEquation ¶
bfs
func CalcEquation2 ¶
Floyd算法
func CalcEquationMine ¶
wrong answer
func CanPlaceFlowers ¶
func CheckStraightLine ¶
func LargeGroupPositions ¶
func LargeGroupPositions2 ¶
func MaxSlidingWindow3 ¶
func MaximumProduct ¶
func PrefixesDivBy5 ¶
func RotateArray ¶
func RotateArray2 ¶
func SummaryRanges ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.