Exemplo n.º 1
0
        public int Solution(string input)
        {
            string[] strings = stringsRepository.GetStrings(input);
            int      stringLiteralsMinusStringMemoryDiff = characters.CalculateStringLiteralsMinusStringMemoryDiff(strings);

            return(stringLiteralsMinusStringMemoryDiff);
        }
Exemplo n.º 2
0
        public int Solution(string input)
        {
            string[] strings = stringsRepository.GetStrings(input);

            int niceStringsCount = niceStrings.CountNiceStringsForPart1Rules(strings, vowels, forbiddenSubstrings);

            return(niceStringsCount);
        }
Exemplo n.º 3
0
        public int Solution(string input)
        {
            string[] strings = stringsRepository.GetStrings(input);

            int niceStringsCount = niceStrings.CountNiceStringsForPart2Rules(strings);

            return(niceStringsCount);
        }
Exemplo n.º 4
0
        public int Solution(string input)
        {
            string[] strings = stringsRepository.GetStrings(input);
            int      encodedStringMinusStringLiteralsDiff =
                characters.CalculateEncodedStringMinusStringLiteralsDiff(strings);

            return(encodedStringMinusStringLiteralsDiff);
        }