Documentation ¶
Index ¶
- func Abs(i int) int
- func Bin2Dec(binary string) int
- func ChangeToFloatSlice(ar []int) []float64
- func ChangeToIntSlice(ar []float64) []int
- func CheckAndDownloadFile(filename, url string)
- func Contains(n int, s *[]int) bool
- func Equal(a *[]int, b *[]int) bool
- func GCD(a, b int) int
- func Hex2Bits(hex string) []uint64
- func LCM(a, b int) int
- func LineScanner(path string) *bufio.Scanner
- func Max(values ...int) int
- func Min(values ...int) int
- func Multiply(values ...int) int
- func MustAtoi(s string) int
- func Read(scanner *bufio.Scanner) (string, bool)
- func RuneScanner(path string) *bufio.Scanner
- func ShiftSliceLeft(s *[]int, num int)
- func ShiftSliceRight(s *[]int, num int)
- func SliceContainsString(s []string, e string) bool
- func SortString(s string) string
- func Sum(values ...int) int
- func ToFloatSlice(s string, sep string) []float64
- func ToIntSlice(s string, sep string) []int
- func ToIntSliceCharacter(s string) []int
- func WordScanner(path string) *bufio.Scanner
- type Input
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeToFloatSlice ¶
func ChangeToIntSlice ¶
func CheckAndDownloadFile ¶
func CheckAndDownloadFile(filename, url string)
CheckAndDownloadFile checks if we have the input file for the day and downloads it if it is not available
func LineScanner ¶
func RuneScanner ¶
func ShiftSliceLeft ¶
func ShiftSliceRight ¶
func SliceContainsString ¶
func SortString ¶
func ToFloatSlice ¶
func ToIntSlice ¶
func ToIntSliceCharacter ¶
func WordScanner ¶
Types ¶
type Input ¶
type Input string
Input holds the puzzle inputs as a string
func GetInputFromSlice ¶
func (*Input) AsIntSlice ¶
AsIntSlice returns the Input as a slice of ints
func (*Input) AsStringSlice ¶
AsStringSlice returns the Input as a slice of strings
Click to show internal directories.
Click to hide internal directories.