This commit is contained in:
Gabriel Bizdoc 2025-12-24 23:03:25 +02:00
parent 5df5caa228
commit 19cb10b1f4
No known key found for this signature in database
GPG Key ID: 3F0EDAECA5BE9ED9

View File

@ -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 {