CSES — DP Coin Combination II TLE

Правка en1, от Kaleab_Asfaw, 2020-09-07 18:44:15

Getting TLE with a python solution for Coin Combination problem in here

I know that python is slow ..., but have seen other python users solving it here

My Code

Creating the dp 2D array is even taking much time. Is there a way it can be optimized?

Thanks for taking your time and reading this!

Теги dp, #dynamic programing, #tle, #optimization

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Kaleab_Asfaw 2020-09-07 18:44:15 981 Initial revision (published)