From 8d3ec2ff24ac89ca4d1a10ef607bc0a5ad038c84 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Wed, 8 Dec 2021 11:35:24 -0500 Subject: [PATCH] fix formatting --- aoc2021/Day08.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/aoc2021/Day08.cs b/aoc2021/Day08.cs index 86e764b..27931eb 100644 --- a/aoc2021/Day08.cs +++ b/aoc2021/Day08.cs @@ -5,14 +5,15 @@ /// public sealed class Day08 : Day { - private static readonly List PossibleMappings = "abcdefg".ToCharArray().Permute().Select(m => m.ToArray()).ToList(); + private static readonly List PossibleMappings = + "abcdefg".ToCharArray().Permute().Select(m => m.ToArray()).ToList(); + public Day08() : base(8, "Seven Segment Search") { } - private static int MatchDigit(string lit) - { - return lit switch + private static int MatchDigit(string lit) => + lit switch { "1110111" => 0, "0010010" => 1, @@ -26,7 +27,6 @@ public sealed class Day08 : Day "1111011" => 9, _ => -1 }; - } private static int Decode(string line) {