@@ -143,7 +143,7 @@ object Day23 {
143143
144144 def closestMostNanobots (nanobots : Seq [Nanobot ]): Int = {
145145 val queue : mutable.PriorityQueue [(Nanobot , (Int , Int ), Int )] =
146- mutable.PriorityQueue .empty(Ordering .by({ case (octahedron, (lower, upper), originDist) =>
146+ mutable.PriorityQueue .empty(using Ordering .by({ case (octahedron, (lower, upper), originDist) =>
147147 (upper, lower, - originDist)
148148 // (upper, -octahedron.radius, -originDist) // much faster but possibly incorrect?
149149 }))
@@ -241,7 +241,7 @@ object Day23 {
241241
242242 def closestMostNanobots (nanobots : Seq [Nanobot ]): Int = {
243243 val queue : mutable.PriorityQueue [(Box3 , (Int , Int ), Int )] =
244- mutable.PriorityQueue .empty(Ordering .by({ case (octahedron, (lower, upper), originDist) =>
244+ mutable.PriorityQueue .empty(using Ordering .by({ case (octahedron, (lower, upper), originDist) =>
245245 (upper, lower, - originDist)
246246 // (upper, -octahedron.radius, -originDist) // much faster but possibly incorrect?
247247 }))
0 commit comments