Documentation ¶
Index ¶
- func BinaryStringToInt(v string) int
- func BinaryStringToInt64(v string) int64
- func BinaryStringToUInt64(v string) uint64
- func CollapseRanges(ranges [][]int) [][]int
- func ContainsString(search string, data string) bool
- func Gcd(a uint, b uint) uint
- func Lcm(a uint, b uint) uint
- func Lcm_x(data []uint) uint
- func MaxInt(a int, b int) int
- func MinInt(a int, b int) int
- func SplitDataToListOfInts(data string, delim string) []int
- func ToInt(s string) int
- type AOCDay
- type AppLogic
- type Entry
- type Node
- type Problem
- type Progress
- type Puzzle
- type Q
- type Summary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinaryStringToInt ¶
Converts a decimal string to an integer value e.g. "11" -> utisl.BinaryStringToInt("11") = 3
func BinaryStringToInt64 ¶
func BinaryStringToUInt64 ¶
func CollapseRanges ¶
a semi-functional collapsing function which finds overlaps and merges indexes
func ContainsString ¶
func SplitDataToListOfInts ¶
reads some test data to a slice of ints
Types ¶
type Node ¶
type Problem ¶
type Problem struct { Name string // headline URL string // the problem on AOC website StdOut bool // does it print the solution to STDout? API bool // is there an API I can call to get the solution and visualise it over the web? Visualisation bool // can I visualise i over the web? Year int // YYYY Day int // 1..25 Part int // 1 or 2 GaveUp bool // has it defeated me InProgress bool // is it currently in progress Paused bool // have I stopped working on it for non giveup reasons Attempts int // how many times have I tried this Solved bool // did I manage it Complexity int // 0..N easy..complex Satisfaction int // 0..N 0=made me insane, 100 = so happy Effort int // how hard did I have to work (so, it might have been easy but took a lot because of data wrangling) Started string // date time Completed string // date time Notes string // what did I think Concepts string // what CS concepts, algos, data structures did I use }
Each solution as I complete it should return the problems so I can do something (Websitey) with them for future reference
type Summary ¶
type Summary struct { Name string // headline URL string // the problem on AOC website Year int // YYYY Day int // 1..25 API bool // is there an API I can call to get the solution and visualise it over the web? StdOut bool // does it print the solution to stdout? VisualisationP1 bool // can I visualise i over the web? VisualisationP2 bool // can I visualise i over the web? ProgressP1 Progress // has it defeated me ProgressP2 Progress // has it defeated me Attempts int // how many times have I tried this ComplexityP1 int // 0..N easy..complex ComplexityP2 int // 0..N easy..complex SatisfactionP1 int // 0..N 0=made me insane, 100 = so happy SatisfactionP2 int // 0..N 0=made me insane, 100 = so happy EffortP1 int // how hard did I have to work (so, it might have been easy but took a lot because of data wrangling) EffortP2 int // how hard did I have to work (so, it might have been easy but took a lot because of data wrangling) DateStarted string // date time DateCompleted string // date time LastModified string // date time Concepts string // what CS concepts, algos, data structures did I use Entries []*Entry }
Each solution as I complete it should return the problems so I can do something (Websitey) with them for future reference
func NewSummary ¶
Click to show internal directories.
Click to hide internal directories.