Example #1
0
        public void FindCommonLetters()
        {
            var ids = Input.Day02Parse(Puzzle2Example).Select(x => new BoxId(x)).ToList();

            var common = BoxId.FindCommonLetters(ids);

            common.Should().Be("fgij");
        }
Example #2
0
        public void Puzzle2_FindCommonLetters()
        {
            var ids = Input.Day02Parse(Input.Day02).Select(x => new BoxId(x)).ToList();

            var common = BoxId.FindCommonLetters(ids);

            common.Should().Be("krdmtuqjgwfoevnaboxglzjph");
        }