I was asked a question in an interview.Let's say we have an array on integers {1,2,3}, find the numbers that sum to 10? Numbers could be repeated: For example sample response would give {2,2,2,2,2} or {7,3} or {3,3,2,2};
Any algorithm would help.No code required.
Thanks,