In the language of your choice, write a function which, taking a positive integer n as input, finds all sets of
numbers that sum up to n. For example, n=4, we have: (Note that 2, 1, 1 is same as 1, 2, 1 or 1, 1, 2)
BONUS!
● 4
● 3, 1
● 2, 2
● 2, 1, 1
● 1, 1, 1, 1
Send your answer to
[email protected] before November 27th, 2017 11.59pm. Two best answers
will get “pulsa” Rp 50K each