Very large amounts: try greedy, then bound the table
Check whether greedy is safe. If the coin set passes the canonical check from the greedy section, greedy answers any amount in , with no table at all.
Bound the table by the largest coin. Call the largest coin and the second largest . A best answer never holds of the smaller coins. Line up any of them and keep a running total: either one total is a multiple of , or two totals leave the same remainder and the coins between them add up to a multiple of . Each of those coins is smaller than , so fewer coins of can replace them.
So the smaller coins in a best answer add up to at most . Split the amount into from the smaller coins and coins of :
runs over the amounts from 0 to that leave a multiple of . The table only has to reach , whatever the amount. For the practice test's coins, is 500 cents and is 100, so that's 49,900 cents: 49,901 cells for any amount.
Watch the count's size. Python's integers don't overflow. But with the practice test's six coins, the number of ways to make $10,000 is a 67-bit number, past what a signed 64-bit integer holds. In another language, ask whether they want the count modulo a large prime.