Skip to content

Commit 4b6537e

Browse files
committed
2022/24 cleanup
1 parent 724b47a commit 4b6537e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

2022/Day24/Solution.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ int f(Pos pos) {
4848
return pos;
4949
}
5050

51-
foreach (var stateNeighbour in NextPositions(pos, maps)) {
52-
if (!seen.Contains(stateNeighbour)) {
53-
seen.Add(stateNeighbour);
54-
q.Enqueue(stateNeighbour, f(stateNeighbour));
51+
foreach (var nextPos in NextPositions(pos, maps)) {
52+
if (!seen.Contains(nextPos)) {
53+
seen.Add(nextPos);
54+
q.Enqueue(nextPos, f(nextPos));
5555
}
5656
}
5757
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy