Documentation ¶
Index ¶
- func BiggestMap(m map[*interface{}]int) (interface{}, int)
- func BiggestValue(numbers []int) int
- func DefaultValuedSlice[T comparable](size int, val T) []T
- func GenericIntersection[T comparable](a []T, b []T) []T
- func NumberInRange(lower, upper, number int) bool
- func OrderedStringIntersection(s1, s2 string) string
- func ReadFileLineByLine(path string) []string
- func ReadFileToString(path string) string
- func SmallestValue(numbers []int) int
- func SplitToChunks[T comparable](arr []T, chunkSize int) [][]T
- func SumOfArray(arr []int) (sum int)
- func UnOrderedStringIntersection(s ...string) string
- func WriteFile(filename string, contents []byte)
- type Pair
- type PairList
- type Set
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BiggestMap ¶
func BiggestValue ¶
func DefaultValuedSlice ¶
func DefaultValuedSlice[T comparable](size int, val T) []T
func GenericIntersection ¶
func GenericIntersection[T comparable](a []T, b []T) []T
func NumberInRange ¶
Determines if number is in supplied range (inclusive)
func ReadFileLineByLine ¶
func ReadFileToString ¶
func SmallestValue ¶
func SplitToChunks ¶
func SplitToChunks[T comparable](arr []T, chunkSize int) [][]T
func SumOfArray ¶
Types ¶
type Set ¶
type Set[T comparable] map[T]interface{}
func NewSet ¶
func NewSet[T comparable](val ...T) (s Set[T])
func (Set[T]) AddListOfItems ¶
func (s Set[T]) AddListOfItems(i []T)
Click to show internal directories.
Click to hide internal directories.