Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Day13 = runner.NewStreamingDay(13, parsePatterns, part1, part2).
WithExpectedAnswers(37975, 32497)
Functions ¶
This section is empty.
Types ¶
type Pattern ¶
type Pattern struct {
Rows []int32 // represents a row of the pattern
Cols []int32 // represents a column of the pattern
}
func (Pattern) SummarizeReflection ¶
SummarizeReflection returns the number of columns or rows before the reflection in the pattern. If there is no reflection, then -1 is returned.
If the reflection is a horizontal reflection, then the number of rows before the reflection is multiplied by 100
Click to show internal directories.
Click to hide internal directories.