diff --git a/Day12.cs b/Day12.cs index ce7a158..6ebe4b8 100644 --- a/Day12.cs +++ b/Day12.cs @@ -1,7 +1,6 @@ #define Day12 #if Day12 using System.Collections.Immutable; -using System.Diagnostics; using AoC2021; const string START = "start"; const string END = "end"; @@ -37,8 +36,7 @@ long PathCountPart1(Dictionary> paths, Immutabl foreach (var a in adjacent) { if (a.ToLower() == a) { count += PathCountPart1(paths, visitedSmallCaves.Add(a), a); - } - else { + } else { count += PathCountPart1(paths, visitedSmallCaves, a); } } @@ -58,8 +56,7 @@ long PathCountPart2(Dictionary> paths, Immutabl foreach (var a in adjacent) { if (a.ToLower() == a) { count += PathCountPart2(paths, visitedSmallCaves.Add(a), a, twice || visitedSmallCaves.Contains(a)); - } - else { + } else { count += PathCountPart2(paths, visitedSmallCaves, a, twice); } }