Getting TLE in bottom up (iterative apporach) and AC in top down(recursive) in Coins problem

I am getting TLE in bottom up approach and AC in top down dp in coins problem. Why so?

I don’t know. Do you know why? Since you are the only one that can and want to look at your code anyways.