diff --git a/AoC_2025/Day01.cs b/AoC_2025/Day01.cs index 14c9ff1..69aeb77 100644 --- a/AoC_2025/Day01.cs +++ b/AoC_2025/Day01.cs @@ -73,24 +73,6 @@ public class Day01 : IPuzzleSolver return mod; } - private static bool HasPassedZero(bool hasOverflow, int dialPosition) - { - return dialPosition != 0 && hasOverflow; - } - - private static (int nextDialPosition, bool passedZero) GetNextDialPosition(int rotationAmount, int dialPosition) - { - var actualRotation = rotationAmount % 100; - var nextDialPosition = dialPosition + actualRotation; - var hasOverflow = nextDialPosition is > 99 or < 1; - nextDialPosition %= 100; - if (nextDialPosition < 0) - { - nextDialPosition = 100 + nextDialPosition; - } - return (nextDialPosition, hasOverflow); - } - private static int ParseRotationAmount(string puzzleInput) { var direction = puzzleInput[..1]; @@ -102,11 +84,4 @@ public class Day01 : IPuzzleSolver return rotationAmount; } - - private static int CountFullRotations(int rotationAmount) - { - var fullRotations = Math.Abs(rotationAmount / 100); - - return fullRotations; - } } \ No newline at end of file diff --git a/AoC_2025/Day04.cs b/AoC_2025/Day04.cs index 77f54a2..323a90c 100644 --- a/AoC_2025/Day04.cs +++ b/AoC_2025/Day04.cs @@ -81,8 +81,8 @@ public class Day04 : IPuzzleSolver Coordinate[] neighbourDirections = [ (-1, -1), (-1, 0), (-1, 1), - (0, -1), (0, 1), - (1, -1), (1, 0), (1, 1), + (0, -1), (0, 1), + (1, -1), (1, 0), (1, 1), ]; var possibleNeighbours = neighbourDirections .Select(direction => (coordinate.x + direction.x, coordinate.y + direction.y)); diff --git a/AoC_2025/Day05.cs b/AoC_2025/Day05.cs index df3e31b..2f53e49 100644 --- a/AoC_2025/Day05.cs +++ b/AoC_2025/Day05.cs @@ -113,7 +113,7 @@ public class Day05 : IPuzzleSolver return optimizedRanges; } - private static IEnumerable CountIdsInRanges(List combinedRanges) + private static IEnumerable CountIdsInRanges(IEnumerable combinedRanges) { var countIdsInRanges = combinedRanges.Select(range => range.to - range.from + 1); return countIdsInRanges;