Documentation ¶
Index ¶
- func ArrayToNum(nums []int) int64
- func DivideV1(a int, b int) (int, int)
- func Divisor(n int) []int
- func DivisorV2(n int) int
- func DivisorV3(s int) []int
- func Fib(n int64) int64
- func FibBigInt(n *big.Int) *big.Int
- func FloatCompare(a, b float64) int
- func FloatEqualTo(a, b float64) bool
- func GoldenFib(n int64) float64
- func GoldenFibBig(n *big.Int) *big.Float
- func Multiple(a []int, b []int, r []int)
- func MultipleWithResult(f []int, g []int) []int
- func NextPermutationV1(c []int, l int, r int)
- func NextPermutationV2(c []int, l int, r int) bool
- func NextPermutationV3(c []int, first int, last int) bool
- func NumToArray(num int) []int
- func NumbericLength(n []int) int
- func Plus(a []int, b []int, r []int)
- func PlusV2(a []int, b []int, r []int)
- func PostiveSub(a []int, b []int, r []int)
- func Prime(n int) bool
- func QuickDivision(a int, b int) (int, int)
- func Quo(a []int, b []int, r []int)
- func Reverse(c []int, first int, last int)
- func ReverseV2(c []int, l int, r int)
- func TailFib(n int64, a int64, b int64) int64
- func TailFibArray(n []int, a []int, b []int) (r []int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayToNum ¶
func FloatCompare ¶
func FloatEqualTo ¶
func MultipleWithResult ¶
func NextPermutationV1 ¶
func NextPermutationV3 ¶
https://github.com/cweill/Permute-Golang/blob/master/permute.go http://wordaligned.org/articles/next-permutation Ddsger W. Dijkstra A DISCIPLINE OF PROGRAMMING, Chapter 13
func NumToArray ¶
func PostiveSub ¶
https://blog.csdn.net/gd007he/article/details/69055031 https://blog.csdn.net/gd007he/article/details/68961974
func Reverse ¶
Reverse() is a predefined function in header file algorithm. It is defined as a template in the above mentioned header file. It reverses the order of the elements in the range [first, last) of any container. Note: The range used is [first,last), which contains all the elements between first and last, including the element pointed by first but not the element pointed by last. https://github.com/gcc-mirror/gcc/blob/gcc-9-branch/libstdc++-v3/include/bits/stl_algo.h#L1150-L1164
Types ¶
This section is empty.