結果 : max min algorithm time complexity