1. int first = max(n,low, middle);

int second = max(n, middle+1, high);

return (first > second) ? first : second;


2. return (max(n,low, middle) > max(n, middle+1, high)) ? max(n,low, middle) : max(n, middle+1, high);


2.번의 경우로 짜면 max함수가 더 여러번 호출되어서 처리시간이 더 오래걸리는지 아니면 동일한 시간이 걸리나요?

프로그램 내부적으로 처리를 해주는 부분이 있는건가해서요