Build Knowledge Tree
Monday, December 2, 2013
Technical Problem 4
Given a number N, write a program that returns all possible combinations of numbers that add up to N, as lists. (Exclude the N+0=N)
For example, if N=4 return {{1,1,1,1},{1,1,2},{2,2},{1,3}}
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment