結果 : evaluate time complexity and space complexity of an algorithm