public int Solution(string input) { int inputSquare = inputSquareRepository.GetInputSquare(input); int manhattanDistance = spiralMemory.CalculateManhattanDistanceFromSquareToAccessPort(inputSquare); return(manhattanDistance); }
public int Solution(string input) { int inputSquare = inputSquareRepository.GetInputSquare(input); int firstValueLargerThanInputSquare = spiralMemory.CalculateFirstValueLargerThanInputSquare(inputSquare); return(firstValueLargerThanInputSquare); }