CSES — DP Coin Combination II TLE

Revision en1, by 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!

Tags dp, #dynamic programing, #tle, #optimization

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Kaleab_Asfaw 2020-09-07 18:44:15 981 Initial revision (published)