public string Solution(string input) { HashSet <(char, char)> instructions = instructionsRepository.GetInstructions(input); string stepsOrder = steps.FindOrderOfStepsInWhichInstructionsAreCompleted(instructions); return(stepsOrder); }
public int Solution(string input) { HashSet <(char, char)> instructions = instructionsRepository.GetInstructions(input); int secondsNeededToCompleteAllSteps = steps.CalculateSecondsNeededToCompleteAllSteps(instructions, totalWorkers, baseStepDuration); return(secondsNeededToCompleteAllSteps); }