From 024eb77fbe375c0bd69f31495b66255877747f99 Mon Sep 17 00:00:00 2001 From: Sebastian Lindemeier Date: Fri, 12 Dec 2025 20:20:50 +0100 Subject: [PATCH] Refactor Day10 to simplify LINQ usage in `GetButtonCombinations` by removing unnecessary `.Select()` --- AoC_2025/Day10.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AoC_2025/Day10.cs b/AoC_2025/Day10.cs index c038b52..33694c8 100644 --- a/AoC_2025/Day10.cs +++ b/AoC_2025/Day10.cs @@ -90,7 +90,7 @@ public class Day10 : IPuzzleSolver { var buttonCombinations = GetButtonCombinations(joltages.Length, buttons) .GroupBy(x => x.Mask) - .ToDictionary(x => x.Key, x => x.Select(y => y).ToArray()); + .ToDictionary(x => x.Key, x => x.ToArray()); var res = GetMinCountInternal(joltages, buttonCombinations, new Dictionary(new IntArrayEqualityComparer())); return res;