結果 : time complexity of dynamic programming algorithm