Documentation ¶
Index ¶
- Constants
- func AbsInt(n int) int
- func Combinations(characters []rune, length int) [][]rune
- func Crt(a []*big.Int, n []*big.Int) (*big.Int, error)
- func FromCoordinates(x int, y int, columnLength int) int
- func GreatestCommonDivisor(a, b int) int
- func GridToString(grid []rune, columnLength int) string
- func IntPow(a, b int) int
- func IsUpper(s string) bool
- func LeastCommonMultiple(a, b int, integers ...int) int
- func ManhattanDistance(x int, y int) int
- func MaxInt(a int, b int) int
- func MinInt(a int, b int) int
- func Neighbour(x int, y int, direction int, rowLength int, columnLength int) int
- func RotateRelativePoint(x2 int, y2 int, angle int) (int, int)
- func ToByteSlice(input string, separator byte) [][]byte
- func ToCoordinates(offset int, columnLength int) (x int, y int)
- func ToIntegerSlice(input string, separator string) ([]int, error)
- func ToOptimisticIntSlice(input string, allowNegative bool) []int
- func ToRuneSlice(input string, separator string) [][]rune
- func ToStringSlice(input string, separator string) []string
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func Combinations ¶
func Crt ¶
courtesy of https://rosettacode.org/wiki/Chinese_remainder_theorem#Go
func GreatestCommonDivisor ¶
courtesy of https://go.dev/play/p/SmzvkDjYlb
func GridToString ¶
func LeastCommonMultiple ¶
courtesy of https://go.dev/play/p/SmzvkDjYlb
func ManhattanDistance ¶
func ToByteSlice ¶
func ToOptimisticIntSlice ¶
func ToRuneSlice ¶
func ToStringSlice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.