int

package
v0.0.0-...-cef7ed5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2017 License: BSD-3-Clause Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Comb

func Comb(n uint64, draw uint64) (res uint64)

func Comb2

func Comb2(n uint64, draw uint64) (res uint64)

func FactorSum

func FactorSum(values []int, sum int, elements int, all bool) (indexes [][]int)

FactorSum finds all the possible ways to factor a sum with the numbers of elements. Result indexes is nil if none was found.

func Perm

func Perm(n int, d int, eval func([]int) bool) (per []int)

func Perm2

func Perm2(n int, eval func([2]int) bool) [2]int

func Perm3

func Perm3(n int, eval func([3]int) bool) [3]int

func Perm4

func Perm4(n int, eval func([4]int) bool) [4]int

Types

This section is empty.

Jump to

Keyboard shortcuts

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