Skip to content

Instantly share code, notes, and snippets.

View aronerben's full-sized avatar
🦉
:wq

aron aronerben

🦉
:wq
View GitHub Profile
Set of coin values: {1, 2, 5, 10}
Target value: 15
Some combinations which all sum up to 15:
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[1, 2, 2, 5, 5]
[5, 10] [10, 5] is the same solution
[1, 1, 1, 1, 1, 10]
...