Can this work just like the coin change problem? if limited coins were present?
Alternate approach
No, it is not exactly same, instead of coin value, we have weights, ofc, only thing different is obviously the limitation of coins.
Another thing different is that we have to reach the value with minimum coins, this is maximisation of profit and minimisation of weight instead
1 Like
can you explain again?
No, it is not exactly same, instead of coin value, we have weights, ofc, similarity is obviously the fact there is not limitation of coins or weights. While coding, the same logic will be used.
Another thing different is that we have to reach the value with minimum coins in coin exchange while here you have to reach the maximum profit, this is maximisation of profit and that is minimisation of coins instead
1 Like