combinations_go

command module
v0.0.0-...-ab0ccc4 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: MIT Imports: 5 Imported by: 0

README

Mathematical Combinations / Permutations

With combinations, order does not matter. For instance, if you pick 3 out of * 16 billiard balls, the number of possible choices is 560.

Formula:

    n!

r!(n - r)!

n! / r!(n - r)!

$ go run combo.go 16 3
----------------------------------------------------------------

With combinations, order does not matter. For instance, if you
pick 3 out of * 16 billiard balls, the number of possible
choices is 560.

  Formula:

        n!
  --------------
    r!(n - r)!
----------------------------------------------------------------

For 16 elements, taken 3 at a time, ignoring order and without
repetition, you have 560 possible combinations.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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