結果 : calculate time complexity of an algorithm