I need a help with an algorithm that takes a list of integers and value and finds all lists that add up to value. Fore example : fn ([1,1,2,2,3],4) -> [[1,1,2],[1,3],[2,2]]
It must be an recursive soulution without added libraries. I have spent a lot of time figuring this out, but so far I have nothing.
Appreciate any help, thanks