We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac09575 commit e775ff9Copy full SHA for e775ff9
2023/Day03/Solution.cs
@@ -37,7 +37,7 @@ select neighbours.First() * neighbours.Last()
37
}
38
39
// 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).
+ // step and also the columns (using https://stackoverflow.com/a/3269471).
41
bool NextTo(Part p1, Part p2) =>
42
Math.Abs(p2.Irow - p1.Irow) <= 1 &&
43
p1.Icol <= p2.Icol + p2.Text.Length &&
@@ -53,4 +53,4 @@ from match in rx.Matches(rows[irow])
53
54
record Part(string Text, int Irow, int Icol) {
55
public int Int => int.Parse(Text);
56
-}
+}
0 commit comments