Why tle in this question (COINS)

It’s actually sufficient to memoize only smaller numbers, since that’s where most of the overlap work occurs. A common array holding the smallest 10^5 values is enough.

Python: CodeChef: Practical coding for everyone