ben
/
aoc
1
0
Fork 0

oops, remove trailing whitespace
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Ben Harris 2023-12-03 15:07:10 -05:00
parent 31fe78fbc3
commit 4fa3352510
1 changed files with 3 additions and 3 deletions

View File

@ -16,16 +16,16 @@ public sealed class Day03() : Day(2023, 3, "Gear Ratios")
for (var row = 0; row < input.Count; row++)
{
Number currentNumber = new();
for (var col = 0; col < input[row].Length; col++)
{
var c = input[row][col];
if (c == '.') continue;
if (char.IsAsciiDigit(c))
{
digits.Add(c - '0');
if (digits.Count == 1)
if (digits.Count == 1)
currentNumber.Start = (row, col);
while (col < input[row].Length - 1 && char.IsAsciiDigit(input[row][col + 1]))