Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • $\begingroup$ Hmm... looks like there'll be a combinatorial explosion (even more so since you allow repetition). Why do you want to do this? Perhaps there's a better way to get to the result than brute-forcing... $\endgroup$ Commented Mar 5, 2014 at 2:37
  • $\begingroup$ Duplicate: Memory efficient generation and selection of tuples $\endgroup$ Commented Mar 5, 2014 at 2:39
  • $\begingroup$ Deleted my answer, pending possible duplicate status, and clarification of what and why you're doing this: as rm-rf says, there may well be a much smarter way to do this. $\endgroup$ Commented Mar 5, 2014 at 3:02