algorithms.tutorialhorizon.com
Find all unique combinations of numbers (from 1 to 9 ) with sum to N | Algorithms
Objective: Given an integer N, Write an algorithm to select numbers from 1 to 9 and make combinations such that its sum to N. Example: N= 5 Output: [1, 4] [2, 3] [5]