Skip to content

Commit 2a3842b

Browse files
committed
no message
1 parent 34b8131 commit 2a3842b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

2024/Day12/Solution.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ int FindEdges(Dictionary<Complex, Region> map, Complex pt) {
3939
var res = 0;
4040
var region = map[pt];
4141
foreach (var du in new[] { Right, Down, Left, Up}) {
42-
// xy
42+
// x.
4343
if (map.GetValueOrDefault(pt + du) != region) {
4444
res++;
4545
}
@@ -53,15 +53,15 @@ int FindCorners(Dictionary<Complex, Region> map, Complex pt) {
5353

5454
// rotate du and dv and check for the 4 corner types
5555
foreach (var (du, dv) in new[] { (Up, Right), (Right, Down), (Down, Left), (Left, Up) }) {
56-
// yy
57-
// xy
56+
// ..
57+
// x.
5858
if (map.GetValueOrDefault(pt + du) != region &&
5959
map.GetValueOrDefault(pt + dv) != region
6060
) {
6161
res++;
6262
}
6363

64-
// xy
64+
// x.
6565
// xx
6666
if (map.GetValueOrDefault(pt + du) == region &&
6767
map.GetValueOrDefault(pt + dv) == region &&

0 commit comments

Comments
 (0)