Interesting Coin DP Question

Правка en1, от expertcoderhk, 2023-10-23 17:44:51

Given a List of coins, find minimum number of coins that need to be added to list so that all prices from [1,P] can be paid using the coins of list.

Constraints Length of coin list<=100000 Value of coins <=1000 P<=10000

Sample: P=19 Coinlist={1,4,10} solution=2

Теги dp, knapsack, 0/1 knapsack, coin change

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский expertcoderhk 2023-10-23 17:44:51 311 Initial revision (published)