Documentation ¶
Index ¶
- func C(n, k int) int
- func Combinations(arr []int, m int) [][]int
- func CombinationsInt32(arr []int32, m int) [][]int32
- func ConvertToFloat64(unk interface{}) (float64, error)
- func ConvertToInt(temp interface{}) (int, error)
- func DirectProduct(items ...[]int) [][]int
- func DirectProductInt32(items ...[]int32) [][]int32
- func MaxInt(x, y int) int
- func MaxInt32(x, y int32) int32
- func MaxInt64(x, y int64) int64
- func MinInt(x, y int) int
- func MinInt32(x, y int32) int32
- func MinInt64(x, y int64) int64
- func Permutations(arr []int) [][]int
- func Range(start, end int) []int
- func RangeInt32(start, end int32) []int32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Combinations ¶
从数组中选出m个任意组合 算法:先固定某一位的数字,再遍历其他位的可能性,递归此过程
func CombinationsInt32 ¶
从数组中选出m个任意组合,Int32版 算法:先固定某一位的数字,再遍历其他位的可能性,递归此过程
func ConvertToFloat64 ¶
ConvertToFloat64 guess Num format and convert to Float64
func ConvertToInt ¶
ConvertToInt guess Num format and convert to Int
func DirectProductInt32 ¶
任意多个集合的笛卡尔积(直积),Int32版 回溯法遍历所有可能性
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.