Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Day05 = runner.NewDay(5, parseMaps, part1, part2).
WithExpectedAnswers(226172555, 47909639)
Functions ¶
This section is empty.
Types ¶
type Offset ¶
type Offset struct { // InputTo represents the inclusive upper range of this offset // The previous offsets InputTo +1 marks the start of this range // // If there is no previous offset, then the implicit start // is zero InputTo int // OffsetBy presents how much to offset the input // to create the output OffsetBy int }
type Offsets ¶
type Offsets []Offset
func MapsToMergedOffset ¶
type Range ¶
func (Range) SourcesOverLap ¶
SourcesOverLap returns true if these two ranges contain any overlap at all?
i.e. does any part of `r`'s SrcRangeStart -> (SrcRangeStart + Length) overlap with `other`'s SrcRangeStart -> (SrcRangeStart + Length)
Click to show internal directories.
Click to hide internal directories.