Skip to content

Commit dfbc0c0

Browse files
committed
refactor(2024): simplify day 8
1 parent 5c4bb18 commit dfbc0c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/2024/puzzles/day08/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func part1(name string) int {
2828
antinodes := make(map[Location]bool)
2929

3030
for _, locations := range towerLocations {
31-
for i := 0; i < len(locations); i++ {
31+
for i := range locations {
3232
for j := i + 1; j < len(locations); j++ {
3333
towerOne := locations[i]
3434
towerTwo := locations[j]

0 commit comments

Comments
 (0)