コード例 #1
0
        public int Solution(string input)
        {
            string[] strings = stringsRepository.GetStrings(input);
            int      stringLiteralsMinusStringMemoryDiff = characters.CalculateStringLiteralsMinusStringMemoryDiff(strings);

            return(stringLiteralsMinusStringMemoryDiff);
        }
コード例 #2
0
        public int Solution(string input)
        {
            string[] strings = stringsRepository.GetStrings(input);

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

            return(niceStringsCount);
        }
コード例 #3
0
        public int Solution(string input)
        {
            string[] strings = stringsRepository.GetStrings(input);

            int niceStringsCount = niceStrings.CountNiceStringsForPart2Rules(strings);

            return(niceStringsCount);
        }
コード例 #4
0
        public int Solution(string input)
        {
            string[] strings = stringsRepository.GetStrings(input);
            int      encodedStringMinusStringLiteralsDiff =
                characters.CalculateEncodedStringMinusStringLiteralsDiff(strings);

            return(encodedStringMinusStringLiteralsDiff);
        }