結果 : difference between time complexity and space complexity of an algorithm