Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
There are already several existing katas about this exact type of DP.
It is not specified what should happen if it is not possible to form
x
using the available coins (e.gx = 5, coins = {2, 4}
), or if they would happen at all.Also:
The range of elements of
coins
should be specified too. What if0
or negative numbers appear incoins
?Sample tests doesn't work:
There are no random tests either.