Documentation
¶
Index ¶
- func Cryptoquip(w1, w2 string) (map[byte]byte, bool)
- func IsAnagram(w1, w2 string) bool
- func IsDigitPermutation(a, b int) bool
- func IsPalindromeInt(p []int) bool
- func IsPalindromeString(p string) bool
- func MakeDigits(n int, c chan []int)
- func PartitionCount(target int) int
- func Partitions(n int) [][]int
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 ¶
IsPalindromeInt returns true if the digits of 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.4.0
Partitions returns all integer partitions of n
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.