コード例 #1
0
        public string Solution(string input)
        {
            HashSet <(char, char)> instructions = instructionsRepository.GetInstructions(input);
            string stepsOrder = steps.FindOrderOfStepsInWhichInstructionsAreCompleted(instructions);

            return(stepsOrder);
        }
コード例 #2
0
        public int Solution(string input)
        {
            HashSet <(char, char)> instructions = instructionsRepository.GetInstructions(input);
            int secondsNeededToCompleteAllSteps =
                steps.CalculateSecondsNeededToCompleteAllSteps(instructions, totalWorkers, baseStepDuration);

            return(secondsNeededToCompleteAllSteps);
        }