day 9
This commit is contained in:
parent
5df5caa228
commit
19cb10b1f4
@ -11,10 +11,6 @@ import (
|
||||
"git.bizdoc.ro/private/devkit.git/collections/geometry/v2"
|
||||
)
|
||||
|
||||
const lineIndex = 0
|
||||
const colIndex = 1
|
||||
const dot = '.'
|
||||
|
||||
type Rectangle struct {
|
||||
Point1, Point2 int
|
||||
Top, Bottom geometry.Point
|
||||
@ -68,6 +64,9 @@ func Part1(ctx aoc.Context) (int, error) {
|
||||
}
|
||||
|
||||
func day9FindRectangles(points [][]int) []Rectangle {
|
||||
const lineIndex = 0
|
||||
const colIndex = 1
|
||||
|
||||
var pairs []Rectangle
|
||||
var abs = func(a int) int {
|
||||
if a < 0 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user