結果 : non recursive algorithm time complexity