Solving for a set of numbers that add up to a given number
A friend asked me this question earlier today, which can be described as follows. Given any set of numbers, find a way to identify all subsets within that set that add up to a given number. Simple enough, right? My solution– featuring simple recursive functions and AJAX (ya, I know, it’s no longer hip)– can be found here. The code can be found on my wiki, which I just re-discovered today.