Documentation
¶
Index ¶
- func AbsInt(in int) int
- func GeneratePrimes(primes []int, n int) int
- func MakeRange(min, max int) []int
- func ManhattanDistance(x1, y1, x2, y2 int) int
- func MaxInt(nums ...int) int
- func MinInt(nums ...int) int
- func MultiplyIntSlice(nums []int) int
- func PythagoreanDistance(x1, y1, x2, y2 int) float64
- func Reverse(s string) (result string)
- func Sum(arr []any) int
- func SumIntSlice(nums []int) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePrimes ¶
GeneratePrimes returns the n-th prime number its param primes []int is intended to contain previously found prime numbers to reduce duplicated work, but still be testable
func ManhattanDistance ¶
func MultiplyIntSlice ¶
func PythagoreanDistance ¶
func SumIntSlice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.