package
0.0.0-20241212084257-8315842ba2f4
Repository: https://github.com/theyoprst/adventofcode.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
Abs returns absolute value of `a`.
BoolToInt converts bool to int (true -> 1, false -> 0).
CountBinaryOnes returns number of 1s in binary representation of `n`.
Returns greates common divisor of numbers from `a`.
Ints returns all integer numbers in s, no matter which delimitters are used.
IsDigit returns true if ch is a digit.
Returns least common multiple of numbers from `a`.
No description provided by the author
MakeSlice return slice of size `n` filled with the value `elem`.
MapContains returns true if map `m` contains key `k`.
MapSortedValues returns values of map `m` sorted in ascending order.
PartialSum returns partial sum list of slice `a`: []int{a[0], a[0]+a[1], ...}}.
ReadInputLines reads lines from os.Stdin.
ReadInput reads all bytes from os.Stdin.
Reversed returns reversed copy of slice `a`.
No description provided by the author
Solves equation a*x^2 + b*x + c = 0.
Split splits slice `a` by value `by`.
# Type aliases
No description provided by the author