結果 : complexity analysis of iterative and recursive algorithm