Skip to content

Commit e775ff9

Browse files
authored
Update Solution.cs
1 parent ac09575 commit e775ff9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

2023/Day03/Solution.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ select neighbours.First() * neighbours.Last()
3737
}
3838

3939
// checks that the parts are touching each other, i.e. rows are within 1
40-
// step also the columns (using https://stackoverflow.com/a/3269471).
40+
// step and also the columns (using https://stackoverflow.com/a/3269471).
4141
bool NextTo(Part p1, Part p2) =>
4242
Math.Abs(p2.Irow - p1.Irow) <= 1 &&
4343
p1.Icol <= p2.Icol + p2.Text.Length &&
@@ -53,4 +53,4 @@ from match in rx.Matches(rows[irow])
5353

5454
record Part(string Text, int Irow, int Icol) {
5555
public int Int => int.Parse(Text);
56-
}
56+
}

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