diff --git a/day-08/internal/two/solve.go b/day-08/internal/two/solve.go index 1526554..3ab1650 100644 --- a/day-08/internal/two/solve.go +++ b/day-08/internal/two/solve.go @@ -29,7 +29,7 @@ func Solve(buf []byte) (int, error) { all := []coords{a.coords, b.coords} for _, coords := range calcAntiNodePos(a.coords, b.coords, graph, all) { - if !graph.isOutOfBounds(coords) && !graph.antinodes.contains(coords) { + if !graph.antinodes.contains(coords) { graph.antinodes.insert(coords) } }