This commit is contained in:
Gabriel Bizdoc 2025-12-08 19:22:01 +02:00
parent 0ef0ffc515
commit 5d84d26602
No known key found for this signature in database
GPG Key ID: 3F0EDAECA5BE9ED9

View File

@ -92,7 +92,6 @@ func Day8Part2(ctx aoc.Context) (int, error) {
}
db := NewClustersDB(boxes)
for _, d := range SortedDistances(boxes) {
if d.Distance != 0 && (db.GetClusterId(d.E1) != db.GetClusterId(d.E2)) {
db.JoinClustersByElements(d.E1, d.E2)