Better algorithm for this ? (generating combinations)

Printable View