Documentation
¶
Index ¶
- func Cryptoquip(w1, w2 string) (map[byte]byte, bool)
- func IsAnagram(w1, w2 string) bool
- func IsDigitPermutation[T common.Integers](a, b T) bool
- func IsPalindromeInt[T comparable](p []T) bool
- func IsPalindromeString(p string) bool
- func MakeDigits(n int, c chan []int)
- func PartitionCount(target int) int
- func Partitions[T common.Integers](n T) [][]T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cryptoquip ¶
Cryptoquip returns true if the letter arrangements are similar; e.g., KEEP and LOOT
func IsDigitPermutation ¶ added in v0.0.7
IsDigitPermutation returns whether the two numbers are digit permutations of each other
func IsPalindromeInt ¶
func IsPalindromeInt[T comparable](p []T) bool
IsPalindromeInt returns true if the values in p are a palindrome
func IsPalindromeString ¶
IsPalindromeString returns true if the string is a palindrome
func MakeDigits ¶
MakeDigits generates all permutations of the first n digits
func PartitionCount ¶ added in v0.6.0
PartitionCount returns the number of integer partitions for target
func Partitions ¶ added in v0.3.0
Partitions returns all integer partitions of n
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.