bins

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Elevens = []int{
		1, 1, 11, 101, 1001, 10001, 100001, 1000001, 10000001, 100000001, 1000000001, 10000000001, 100000000001,
	}
	Nines = []int{
		1, 9, 99, 999, 9999, 99999, 999999, 9999999, 99999999, 999999999, 9999999999, 99999999999, 999999999999,
	}
	Offsets = []int{
		0, 10, 110, 1110, 11110, 111110, 1111110, 11111110,
	}
	Expected = []int{
		0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1946112, 8167808, 3416576,
	}
)
View Source
var (
	// Mod is the global digit mask. Don't change this. Unless you hate yourself.
	Mod = 10000000
)

Functions

func Factorial

func Factorial(n int) int

func FactorialVerbose

func FactorialVerbose(n int) int

Types

type Dataset

type Dataset struct {
	// contains filtered or unexported fields
}

type Stage

type Stage struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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