From b94ab079243f6b646c846041291ef6551b6f17bf Mon Sep 17 00:00:00 2001 From: Sebastian Lindemeier Date: Wed, 2 Dec 2026 10:27:00 +0100 Subject: [PATCH] Fix Day02 travel distance calculation to require complete windows --- AoC_2026/Day02.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AoC_2026/Day02.cs b/AoC_2026/Day02.cs index 180a28f..ef67cb3 100644 --- a/AoC_2026/Day02.cs +++ b/AoC_2026/Day02.cs @@ -34,7 +34,7 @@ public class Day02 : IPuzzleSolver .Prepend(waypoint) .SlidingWindow(2) .Aggregate(0, (acc, next) => - next.Length < 2 + next.Length != 2 ? acc : acc + GetDistance(next[0], next[1])); }