We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c4bb18 commit dfbc0c0Copy full SHA for dfbc0c0
go/2024/puzzles/day08/main.go
@@ -28,7 +28,7 @@ func part1(name string) int {
28
antinodes := make(map[Location]bool)
29
30
for _, locations := range towerLocations {
31
- for i := 0; i < len(locations); i++ {
+ for i := range locations {
32
for j := i + 1; j < len(locations); j++ {
33
towerOne := locations[i]
34
towerTwo := locations[j]
0 commit comments