We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70ba7f2 commit 8e34090Copy full SHA for 8e34090
go/2025/puzzles/day08/main.go
@@ -26,7 +26,9 @@ func part1(name string, count int) int {
26
27
dsu := dsu.New(len(coords))
28
29
- // Create X unions in the DSU
+ // Create X unions in the DSU. I had a bug here for the longest time.
30
+ // I was incrementing "connected" when a union was _successful_, which
31
+ // made more checks that required.
32
for i := range count {
33
dsu.Union(edges[i].P1, edges[i].P2)
34
}
0 commit comments