I am new to elixir and i’m stuck at the problem for writing subsets of a list whose sum would be the target number
array = [3, 5, 2, 7, 4, 2, 3]
iex> sum(array, 10)
desired output :
[[3, 7], [3, 2, 5], [3, 2, 5], [3, 4, 3], [7, 3], [3, 2, 2, 3], [2, 5, 3], [2, 5, 3]]
plz help me