A sum is given, for example 25, and numbers are given, for example 2, 5, 10 You need to find all the combinations for choosing this amount. That is, the program should output 5 + 5 + 5 + 5 + 5, 5 + 5 + 5 + 10, 5 + 10 + 10, 2 + 2 + 2 + 2 + 2 + 10 + 5 and so on.
What algorithms / methods / libraries do you recommend using?