mirror of
https://github.com/onyx-and-iris/aoc2023.git
synced 2024-11-15 15:10:49 +00:00
remove dist assignment
This commit is contained in:
parent
23be028cd3
commit
8e70c5565f
@ -64,9 +64,8 @@ func one(lines []string) int {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
dist := shortestRoute(galaxies[i].coords, galaxies[j].coords, 2)
|
|
||||||
compared = append(compared, []int{galaxies[i].identifier, galaxies[j].identifier})
|
compared = append(compared, []int{galaxies[i].identifier, galaxies[j].identifier})
|
||||||
sum += dist
|
sum += shortestRoute(galaxies[i].coords, galaxies[j].coords, 2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,9 +10,8 @@ func two(lines []string) int {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
dist := shortestRoute(galaxies[i].coords, galaxies[j].coords, 1000000)
|
|
||||||
compared = append(compared, []int{galaxies[i].identifier, galaxies[j].identifier})
|
compared = append(compared, []int{galaxies[i].identifier, galaxies[j].identifier})
|
||||||
sum += dist
|
sum += shortestRoute(galaxies[i].coords, galaxies[j].coords, 1000000)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user